Don't adjust accessDate for UTC and set version to 0 in Item#toJSON

Ref discussions:
https://github.com/zotero/zotero/pull/746/files#r31394225
https://github.com/zotero/zotero/pull/746#commitcomment-11445605
This commit is contained in:
Simon Kornblith 2015-05-31 17:02:20 -04:00
parent 4b995dd467
commit 673168ea7b
4 changed files with 105 additions and 116 deletions

View file

@ -34,7 +34,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1
"version": 0
},
"audioRecording": {
"ISBN": "978-1-234-56789-7",
@ -86,7 +86,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1,
"version": 0,
"volume": "6"
},
"bill": {
@ -131,7 +131,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1
"version": 0
},
"blogPost": {
"abstractNote": "Abstract note",
@ -168,7 +168,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1,
"version": 0,
"websiteType": "Type"
},
"book": {
@ -227,7 +227,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1,
"version": 0,
"volume": "6"
},
"bookSection": {
@ -292,7 +292,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1,
"version": 0,
"volume": "6"
},
"case": {
@ -335,7 +335,7 @@
"shortTitle": "Short title",
"tags": [],
"url": "http://www.example.com",
"version": 1
"version": 0
},
"computerProgram": {
"ISBN": "978-1-234-56789-7",
@ -375,7 +375,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1,
"version": 0,
"versionNumber": "Version"
},
"conferencePaper": {
@ -434,7 +434,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1,
"version": 0,
"volume": "6"
},
"dictionaryEntry": {
@ -494,7 +494,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1,
"version": 0,
"volume": "6"
},
"document": {
@ -546,7 +546,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1
"version": 0
},
"email": {
"abstractNote": "Abstract note",
@ -582,7 +582,7 @@
"subject": "Title",
"tags": [],
"url": "http://www.example.com",
"version": 1
"version": 0
},
"encyclopediaArticle": {
"ISBN": "978-1-234-56789-7",
@ -641,7 +641,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1,
"version": 0,
"volume": "6"
},
"film": {
@ -690,7 +690,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1,
"version": 0,
"videoRecordingFormat": "Medium"
},
"forumPost": {
@ -724,7 +724,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1
"version": 0
},
"hearing": {
"abstractNote": "Abstract note",
@ -759,7 +759,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1
"version": 0
},
"instantMessage": {
"abstractNote": "Abstract note",
@ -795,7 +795,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1
"version": 0
},
"interview": {
"abstractNote": "Abstract note",
@ -841,7 +841,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1
"version": 0
},
"journalArticle": {
"DOI": "10.1234/example.doi",
@ -900,7 +900,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1,
"version": 0,
"volume": "6"
},
"letter": {
@ -942,7 +942,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1
"version": 0
},
"magazineArticle": {
"ISSN": "1234-5679",
@ -991,7 +991,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1,
"version": 0,
"volume": "6"
},
"manuscript": {
@ -1035,7 +1035,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1
"version": 0
},
"map": {
"ISBN": "978-1-234-56789-7",
@ -1082,7 +1082,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1
"version": 0
},
"newspaperArticle": {
"ISSN": "1234-5679",
@ -1133,7 +1133,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1
"version": 0
},
"patent": {
"abstractNote": "Abstract note",
@ -1180,7 +1180,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1
"version": 0
},
"podcast": {
"abstractNote": "Abstract note",
@ -1219,7 +1219,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1
"version": 0
},
"presentation": {
"abstractNote": "Abstract note",
@ -1253,7 +1253,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1
"version": 0
},
"radioBroadcast": {
"abstractNote": "Abstract note",
@ -1314,7 +1314,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1
"version": 0
},
"report": {
"abstractNote": "Abstract note",
@ -1365,7 +1365,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1
"version": 0
},
"statute": {
"abstractNote": "Abstract note",
@ -1403,7 +1403,7 @@
"shortTitle": "Short title",
"tags": [],
"url": "http://www.example.com",
"version": 1
"version": 0
},
"thesis": {
"abstractNote": "Abstract note",
@ -1442,7 +1442,7 @@
"title": "Title",
"university": "Publisher",
"url": "http://www.example.com",
"version": 1
"version": 0
},
"tvBroadcast": {
"abstractNote": "Abstract note",
@ -1502,7 +1502,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1,
"version": 0,
"videoRecordingFormat": "Medium"
},
"videoRecording": {
@ -1559,7 +1559,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1,
"version": 0,
"videoRecordingFormat": "Medium",
"volume": "6"
},
@ -1597,7 +1597,7 @@
"tags": [],
"title": "Title",
"url": "http://www.example.com",
"version": 1,
"version": 0,
"websiteTitle": "Publication title",
"websiteType": "Type"
}