diff --git a/CliClient/app/command-ls.js b/CliClient/app/command-ls.js index 91f546bfc..029681a11 100644 --- a/CliClient/app/command-ls.js +++ b/CliClient/app/command-ls.js @@ -93,7 +93,7 @@ class Command extends BaseCommand { row.push(await Folder.noteCount(item.id)); } - row.push(time.unixMsToLocalDateTime(item.user_updated_time)); + row.push(time.formatMsToLocal(item.user_updated_time)); } let title = item.title; diff --git a/ReactNativeClient/lib/BaseApplication.js b/ReactNativeClient/lib/BaseApplication.js index 96500c416..f9ef0b1c4 100644 --- a/ReactNativeClient/lib/BaseApplication.js +++ b/ReactNativeClient/lib/BaseApplication.js @@ -494,6 +494,9 @@ class BaseApplication { setLocale(Setting.value('locale')); } + time.setDateFormat(Setting.value('dateFormat')); + time.setTimeFormat(Setting.value('timeFormat')); + BaseService.logger_ = this.logger_; EncryptionService.instance().setLogger(this.logger_); BaseItem.encryptionService_ = EncryptionService.instance();