mirror of
https://gitee.com/openharmony/applications_photos
synced 2024-11-23 07:00:09 +00:00
进行12小时测试,出现jscrash问题
Signed-off-by: zhangjintao <zhangjintao53@chinasoftinc.com>
This commit is contained in:
parent
c9660da059
commit
dfb3434243
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user