Take timezone into account when comparing dates in the UI
This commit is contained in:
parent
d15b172a58
commit
80db01491f
|
@ -248,5 +248,5 @@ en:
|
|||
default: "%a, %d %b %Y %H:%M:%S %z"
|
||||
long: "%B %d, %Y %H:%M"
|
||||
short: "%d %b %H:%M"
|
||||
timeago_tooltip: "%b %-d, %Y %-k:%M%P"
|
||||
timeago_tooltip: "%b %-d, %Y %-l:%M%P"
|
||||
pm: pm
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue