mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
renamed dates in code as well
This commit is contained in:
@@ -15,7 +15,7 @@ async function showDialog() {
|
||||
$list.empty();
|
||||
|
||||
for (const event of result) {
|
||||
const dateTime = utils.formatDateTime(utils.parseDate(event.dateCreated));
|
||||
const dateTime = utils.formatDateTime(utils.parseDate(event.utcDateCreated));
|
||||
|
||||
if (event.noteId) {
|
||||
const noteLink = await linkService.createNoteLink(event.noteId).prop('outerHTML');
|
||||
|
||||
@@ -2,8 +2,8 @@ import noteDetailService from '../services/note_detail.js';
|
||||
|
||||
const $dialog = $("#note-info-dialog");
|
||||
const $noteId = $("#note-info-note-id");
|
||||
const $dateCreated = $("#note-info-date-created");
|
||||
const $dateModified = $("#note-info-date-modified");
|
||||
const $utcDateCreated = $("#note-info-date-created");
|
||||
const $utcDateModified = $("#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 currentNote = noteDetailService.getCurrentNote();
|
||||
|
||||
$noteId.text(currentNote.noteId);
|
||||
$dateCreated.text(currentNote.dateCreated);
|
||||
$dateModified.text(currentNote.dateModified);
|
||||
$utcDateCreated.text(currentNote.utcDateCreated);
|
||||
$utcDateModified.text(currentNote.utcDateModified);
|
||||
$type.text(currentNote.type);
|
||||
$mime.text(currentNote.mime);
|
||||
}
|
||||
|
||||
@@ -26,11 +26,11 @@ async function showNoteRevisionsDialog(noteId, noteRevisionId) {
|
||||
revisionItems = await server.get('notes/' + noteId + '/revisions');
|
||||
|
||||
for (const item of revisionItems) {
|
||||
const dateModified = utils.parseDate(item.dateModifiedFrom);
|
||||
const utcDateModified = utils.parseDate(item.utcDateModifiedFrom);
|
||||
|
||||
$list.append($('<option>', {
|
||||
value: item.noteRevisionId,
|
||||
text: utils.formatDateTime(dateModified)
|
||||
text: utils.formatDateTime(utcDateModified)
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ async function showDialog() {
|
||||
const dayEl = $('<div>').append($('<b>').html(utils.formatDate(dateDay))).append(changesListEl);
|
||||
|
||||
for (const change of dayChanges) {
|
||||
const formattedTime = utils.formatTime(utils.parseDate(change.dateModifiedTo));
|
||||
const formattedTime = utils.formatTime(utils.parseDate(change.utcDateModifiedTo));
|
||||
|
||||
let noteLink;
|
||||
|
||||
@@ -51,7 +51,7 @@ function groupByDate(result) {
|
||||
const dayCache = {};
|
||||
|
||||
for (const row of result) {
|
||||
let dateDay = utils.parseDate(row.dateModifiedTo);
|
||||
let dateDay = utils.parseDate(row.utcDateModifiedTo);
|
||||
dateDay.setHours(0);
|
||||
dateDay.setMinutes(0);
|
||||
dateDay.setSeconds(0);
|
||||
|
||||
Reference in New Issue
Block a user