mirror of
https://gitee.com/openharmony/applications_settings
synced 2024-11-23 14:30:06 +00:00
commit
9f6cd20356
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user