diff options
author | Bob Van Landuyt <bob@gitlab.com> | 2017-06-15 15:29:11 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2017-06-15 17:54:40 +0300 |
commit | 80db01491f4074f44333c5f1854888b3763510d5 (patch) | |
tree | 1bf28406f7ae8002040c53476a3cb3622697dc4c /spec/features/dashboard | |
parent | d15b172a585a6c7aab31f5109cafb10243c8170f (diff) |
Take timezone into account when comparing dates in the UI
Diffstat (limited to 'spec/features/dashboard')
-rw-r--r-- | spec/features/dashboard/datetime_on_tooltips_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/features/dashboard/datetime_on_tooltips_spec.rb b/spec/features/dashboard/datetime_on_tooltips_spec.rb index 1793e323588..5296297304e 100644 --- a/spec/features/dashboard/datetime_on_tooltips_spec.rb +++ b/spec/features/dashboard/datetime_on_tooltips_spec.rb @@ -4,7 +4,7 @@ feature 'Tooltips on .timeago dates', feature: true, js: true do let(:user) { create(:user) } let(:project) { create(:project, name: 'test', namespace: user.namespace) } let(:created_date) { Date.yesterday.to_time } - let(:expected_format) { created_date.strftime('%b %-d, %Y %l:%M%P') } + let(:expected_format) { created_date.in_time_zone.strftime('%b %-d, %Y %l:%M%P') } context 'on the activity tab' do before do |