Skip to content

Commit b79acdf

Browse files
committed
fix: weird China timezone setting
Let's rely on the locale of the machine running the client.
1 parent 4362b24 commit b79acdf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frontend/src/components/SubmissionHistory.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export default {
124124
getSubmissionDateString(date) {
125125
if (date) {
126126
// date display format: YYYY/MM/DD
127-
return new Date(date).toLocaleDateString('zh-CN', { year: 'numeric', month: '2-digit', day: '2-digit' });
127+
return new Date(date).toLocaleDateString(undefined, { year: 'numeric', month: '2-digit', day: '2-digit' });
128128
}
129129
return '- - - -';
130130
},

frontend/src/components/requestChanges/ReportChanges.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ export default {
492492
getSubmissionDateString(date) {
493493
if (date) {
494494
// date display format: YYYY/MM/DD
495-
return new Date(date).toLocaleDateString('zh-CN', { year: 'numeric', month: '2-digit', day: '2-digit' });
495+
return new Date(date).toLocaleDateString(undefined, { year: 'numeric', month: '2-digit', day: '2-digit' });
496496
}
497497
return '- - - -';
498498
},

0 commit comments

Comments
 (0)