File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export class Common {
19
19
}
20
20
21
21
static localeDate ( ts : number | Date = Date . now ( ) , options : FormatOptions = { } ) {
22
- const { locale = 'zh-CN ' , timeZone = 'Asia/Shanghai' } = options
22
+ const { locale = 'en-US ' , timeZone = 'Asia/Shanghai' } = options
23
23
const today = ts instanceof Date ? ts : new Date ( ts )
24
24
25
25
const formatter = new Intl . DateTimeFormat ( locale , {
@@ -36,7 +36,7 @@ export class Common {
36
36
ts : number | Date = Date . now ( ) ,
37
37
options : FormatOptions & { seconds ?: boolean } = { }
38
38
) {
39
- const { locale = 'zh-CN ' , timeZone = 'Asia/Shanghai' , seconds = true } = options
39
+ const { locale = 'en-US ' , timeZone = 'Asia/Shanghai' , seconds = true } = options
40
40
const now = ts instanceof Date ? ts : new Date ( ts )
41
41
42
42
const formatter = new Intl . DateTimeFormat ( locale , {
You can’t perform that action at this time.
0 commit comments