Fix time zone of note modification time in notes pane

This commit is contained in:
Dan Stillman 2021-03-03 17:06:27 -05:00
parent bda52827da
commit 586a6f1ddf
2 changed files with 2 additions and 2 deletions

View file

@ -502,7 +502,7 @@ var ZoteroContextPane = new function () {
text = text.slice(0, 500);
var parts = text.split('\n').map(x => x.trim()).filter(x => x.length);
var title = parts[0] && parts[0].slice(0, Zotero.Notes.MAX_TITLE_LENGTH);
var date = Zotero.Date.sqlToDate(note.dateModified);
var date = Zotero.Date.sqlToDate(note.dateModified, true);
date = Zotero.Date.toFriendlyDate(date);
return {

View file

@ -592,7 +592,7 @@ var Zotero_QuickFormat = new function () {
var str = "";
if (item.isNote()) {
var date = Zotero.Date.sqlToDate(item.dateModified);
var date = Zotero.Date.sqlToDate(item.dateModified, true);
date = Zotero.Date.toFriendlyDate(date);
str += date;