Skip to content

Commit 3c53d99

Browse files
committed
chore: 使用 en-US locale
1 parent 9dd2d14 commit 3c53d99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class Common {
1919
}
2020

2121
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
2323
const today = ts instanceof Date ? ts : new Date(ts)
2424

2525
const formatter = new Intl.DateTimeFormat(locale, {
@@ -36,7 +36,7 @@ export class Common {
3636
ts: number | Date = Date.now(),
3737
options: FormatOptions & { seconds?: boolean } = {}
3838
) {
39-
const { locale = 'zh-CN', timeZone = 'Asia/Shanghai', seconds = true } = options
39+
const { locale = 'en-US', timeZone = 'Asia/Shanghai', seconds = true } = options
4040
const now = ts instanceof Date ? ts : new Date(ts)
4141

4242
const formatter = new Intl.DateTimeFormat(locale, {

0 commit comments

Comments
 (0)