进行12小时测试,出现jscrash问题

Signed-off-by: zhangjintao <zhangjintao53@chinasoftinc.com>
This commit is contained in:
zhangjintao 2024-03-25 16:14:35 +08:00
parent c9660da059
commit dfb3434243

View File

@ -31,6 +31,9 @@ export class DateUtil {
// Get the date after localization (year-month-day)
public static getLocalizedDate(milliseconds: number): string {
if(milliseconds === undefined){
milliseconds = new Date().getTime()
}
let locales: string = this.getLocales();
return new Intl.DateTimeFormat(locales, {
year: 'numeric',