mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Remove timezone in brackets from user card (#9567)
For clarity and to save space remove the timezone in brackets e.g. (EDT) from the user card. Also add a title to the user time span to say it is Local Time.
This commit is contained in:
@@ -25,11 +25,10 @@ QUnit.test("user card local time", async assert => {
|
||||
assert.ok(invisible(".user-card"), "user card is invisible by default");
|
||||
await click("a[data-user-card=eviltrout]:first");
|
||||
|
||||
let expectedTime =
|
||||
moment
|
||||
.tz("Australia/Brisbane")
|
||||
.add(-2, "hours")
|
||||
.format("hh:mm a") + " (AWST)";
|
||||
let expectedTime = moment
|
||||
.tz("Australia/Brisbane")
|
||||
.add(-2, "hours")
|
||||
.format("h:mm a");
|
||||
|
||||
assert.ok(visible(".user-card"), "card should appear");
|
||||
assert.equal(
|
||||
@@ -51,11 +50,10 @@ QUnit.test("user card local time", async assert => {
|
||||
|
||||
await click("a[data-user-card=charlie]:first");
|
||||
|
||||
expectedTime =
|
||||
moment
|
||||
.tz("Australia/Brisbane")
|
||||
.add(-14, "hours")
|
||||
.format("hh:mm a") + " (EDT)";
|
||||
expectedTime = moment
|
||||
.tz("Australia/Brisbane")
|
||||
.add(-14, "hours")
|
||||
.format("h:mm a");
|
||||
|
||||
assert.equal(
|
||||
find(".user-card .local-time")
|
||||
|
||||
Reference in New Issue
Block a user