Fix for access date on links and snapshots displaying as UTC (thanks Dan C.)

This commit is contained in:
Dan Stillman 2006-10-03 04:25:23 +00:00
parent 3a107a2c7c
commit 044aea0fad

View File

@ -287,11 +287,10 @@ var ZoteroPane = new function()
// URL
document.getElementById('zotero-attachment-url').setAttribute('value', item.getField('url'));
document.getElementById('zotero-attachment-url').setAttribute('hidden', false);
// Access date
document.getElementById('zotero-attachment-accessed').setAttribute('value',
Zotero.getString('itemFields.accessDate') + ': '
+ Zotero.Date.sqlToDate(item.getField('accessDate')).toLocaleString());
+ Zotero.Date.sqlToDate(item.getField('accessDate'), true).toLocaleString());
document.getElementById('zotero-attachment-accessed').setAttribute('hidden', false);
}
// Metadata for files