Fix for access date on links and snapshots displaying as UTC (thanks Dan C.)
This commit is contained in:
parent
3a107a2c7c
commit
044aea0fad
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user