Skip to content

Commit 9486368

Browse files
committed
Fix "Three Realms Gateway Offering" end time
1 parent 198630b commit 9486368

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/data/events.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,6 +1107,7 @@
11071107
"img": "https://upload-os-bbs.hoyolab.com/upload/2022/02/14/1015537/a7d417caff8800b39e73cfd2153441a8_3162259087659744231.jpg",
11081108
"start": "2022-02-17 10:00:00",
11091109
"end": "2022-03-30 06:00:00",
1110+
"end_server": false,
11101111
"reminder": "end"
11111112
},
11121113
{

src/utils/Utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ function endTimes(e: Event) {
327327
if (!e.end) return ""
328328

329329
if (!isServerTimeEnd(e))
330-
return relativeTimestampFromString(e.end, e.timezone)
330+
return `Global: ${relativeTimestampFromString(e.end, e.timezone)}`
331331

332332
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
333333
return getServerTimeInfo().map(st => `${st.server}: ${relativeTimestampFromString(e.end!, `${st.offset.split("").join("0")}:00`)}`).join("\n")

0 commit comments

Comments
 (0)