1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

show correct date/time for cli command ls

closes #729
This commit is contained in:
Helmut K. C. Tessarek 2018-09-04 18:03:21 -04:00
parent 43bd88703c
commit 5e06efc1b9
No known key found for this signature in database
GPG Key ID: BE0985349D44DD00
2 changed files with 4 additions and 1 deletions

View File

@ -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;

View File

@ -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();