Fix time zone of note modification time in notes pane
This commit is contained in:
parent
bda52827da
commit
586a6f1ddf
2 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue