Fix entering date without time into Accessed
https://forums.zotero.org/discussion/65560/5-0-beta-accessed-field-changes-dates
This commit is contained in:
parent
b679adad45
commit
e0e22225bc
3 changed files with 9 additions and 2 deletions
|
@ -207,6 +207,13 @@ describe("Zotero.Item", function () {
|
|||
}
|
||||
})
|
||||
|
||||
it("should accept SQL accessDate without time", function* () {
|
||||
var item = createUnsavedDataObject('item');
|
||||
var date = "2017-04-05";
|
||||
item.setField("accessDate", date);
|
||||
assert.strictEqual(item.getField('accessDate'), date);
|
||||
});
|
||||
|
||||
it("should ignore unknown accessDate values", function* () {
|
||||
var fields = {
|
||||
accessDate: "foo"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue