mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 02:41:13 +08:00
UX: emphasizes on local-dates being UTC in excerpts (#8208)
This commit is contained in:

committed by
Robin Ward

parent
ecfba0bb37
commit
54bc2bdba7
@ -71,4 +71,13 @@ describe PrettyText do
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
context 'excerpt simplified rendering' do
|
||||
let(:post) { Fabricate(:post, raw: '[date=2019-10-16 time=14:00:00 format="LLLL" timezone="America/New_York"]') }
|
||||
|
||||
it 'adds UTC' do
|
||||
excerpt = PrettyText.excerpt(post.cooked, 200)
|
||||
expect(excerpt).to eq("Wednesday, October 16, 2019 6:00 PM (UTC)")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user