!52 fix get time format failed after reboot

Merge pull request !52 from yangpeng85/master
This commit is contained in:
openharmony_ci 2022-07-20 07:17:13 +00:00 committed by Gitee
commit 61c22b8358
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -88,6 +88,7 @@ class TimeManager {
}
this.handleTimeFormatChange();
});
this.handleTimeFormatChange();
} catch (e) {
Log.showError(TAG, `Can't listen timeformate change.`);
}