fix(editor): slash menu e2e (#11289)
This commit is contained in:
1 parent
61b3f82bfe
commit
9f939d823e
1 file changed
+1
-1
@@ -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