Time does not take effect

Signed-off-by: fangzheng24 <fangzheng24@huawei.com>
This commit is contained in:
fangzheng24 2022-11-18 18:12:05 +08:00
parent d5db954a53
commit bd59af00da

View File

@ -100,11 +100,9 @@ export class DateAndTimeModel extends BaseModel {
}
LogUtil.info(ConfigData.TAG + 'DateAndTimeModel i18n set24HourClock ' + JSON.stringify(ret24HourClock));
let ret = settings.setValueSync(globalThis.settingsAbilityContext, ConfigData.TIME_FORMAT_KEY, format);
if (ret === true) {
this.timeFormat = format;
}
return ret;
settings.setValueSync(globalThis.settingsAbilityContext, ConfigData.TIME_FORMAT_KEY, format);
this.timeFormat = format;
return true;
}
/**