mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
note info shows local date instead of utc date
This commit is contained in:
parent
925dc258a6
commit
06202c31e4
@ -2,8 +2,8 @@ import noteDetailService from '../services/note_detail.js';
|
||||
|
||||
const $dialog = $("#note-info-dialog");
|
||||
const $noteId = $("#note-info-note-id");
|
||||
const $utcDateCreated = $("#note-info-date-created");
|
||||
const $utcDateModified = $("#note-info-date-modified");
|
||||
const $dateCreated = $("#note-info-date-created");
|
||||
const $dateModified = $("#note-info-date-modified");
|
||||
const $type = $("#note-info-type");
|
||||
const $mime = $("#note-info-mime");
|
||||
const $okButton = $("#note-info-ok-button");
|
||||
@ -16,8 +16,8 @@ function showDialog() {
|
||||
const activeNote = noteDetailService.getActiveNote();
|
||||
|
||||
$noteId.text(activeNote.noteId);
|
||||
$utcDateCreated.text(activeNote.utcDateCreated);
|
||||
$utcDateModified.text(activeNote.utcDateModified);
|
||||
$dateCreated.text(activeNote.dateCreated);
|
||||
$dateModified.text(activeNote.dateModified);
|
||||
$type.text(activeNote.type);
|
||||
$mime.text(activeNote.mime);
|
||||
}
|
||||
|
@ -10,6 +10,12 @@ class NoteFull extends NoteShort {
|
||||
/** @param {string} */
|
||||
this.content = row.content;
|
||||
|
||||
/** @param {string} */
|
||||
this.dateCreated = row.dateCreated;
|
||||
|
||||
/** @param {string} */
|
||||
this.dateModified = row.dateModified;
|
||||
|
||||
/** @param {string} */
|
||||
this.utcDateCreated = row.utcDateCreated;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user