refactor: time problem
This commit is contained in:
parent
5775c9d5f1
commit
d060ae5f92
3 changed files with 11 additions and 7 deletions
|
|
@ -115,9 +115,9 @@ export function parseAndFormatDate(
|
|||
|
||||
if (locale === 'th-th') {
|
||||
const adjustedYear = Number(year) - 543;
|
||||
return new Date(`${month}/${date}/${adjustedYear}`);
|
||||
return new Date(`${month}/${date}/${adjustedYear}T00:00.000Z`);
|
||||
} else {
|
||||
return new Date(`${month}/${date}/${year}`);
|
||||
return new Date(`${month}/${date}/${year}T00:00.000Z`);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue