mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(editor): slash menu e2e (#11289)
This commit is contained in:
@@ -40,7 +40,7 @@ function formatWithTimezone(date: Date, timeZone: string = 'Asia/Tokyo') {
|
||||
const tokyoDate = date.toLocaleString('en-US', { timeZone });
|
||||
const year = tokyoDate.split(',')[0].split('/')[2];
|
||||
const month = tokyoDate.split(',')[0].split('/')[0].padStart(2, '0');
|
||||
const day = tokyoDate.split(',')[0].split('/')[1];
|
||||
const day = tokyoDate.split(',')[0].split('/')[1].padStart(2, '0');
|
||||
return `${year}-${month}-${day}`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user