From 43c3618a5c02217d79634a0e1588a9fd3ded6ae2 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 22 Aug 2007 08:15:05 +0000 Subject: [PATCH] Fix for Date Added and Date Modified being identical--and both being UTC--in reports --- chrome/content/zotero/xpcom/report.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/report.js b/chrome/content/zotero/xpcom/report.js index 368a7ab82..d117d142e 100644 --- a/chrome/content/zotero/xpcom/report.js +++ b/chrome/content/zotero/xpcom/report.js @@ -100,7 +100,7 @@ Zotero.Report = new function() { var dm = arr['dateModified']; delete arr['dateAdded']; delete arr['dateModified']; - arr['dateAdded'] = dm; + arr['dateAdded'] = da; arr['dateModified'] = dm; for (var i in arr) { @@ -192,7 +192,7 @@ Zotero.Report = new function() { } // Convert dates to local format else if (i=='accessDate' || i=='dateAdded' || i=='dateModified') { - var date = Zotero.Date.sqlToDate(arr[i]) + var date = Zotero.Date.sqlToDate(arr[i], true) fieldText = escapeXML(date.toLocaleString()); } else {