Fix "24" hour time

This commit is contained in:
Natsumi
2022-02-08 04:58:11 +13:00
parent fdfc80eacd
commit cc9ed48de0
3 changed files with 23 additions and 23 deletions

View File

@@ -19032,7 +19032,7 @@ speechSynthesis.getVoices();
hour: 'numeric',
minute: 'numeric',
second: 'numeric',
hour12
hourCycle: (hour12 ? 'h12' : 'h23')
});
} else if (format === 'short') {
return dt
@@ -19041,7 +19041,7 @@ speechSynthesis.getVoices();
day: '2-digit',
hour: 'numeric',
minute: 'numeric',
hour12
hourCycle: (hour12 ? 'h12' : 'h23')
})
.replace(' AM', 'am')
.replace(' PM', 'pm')