Putting and then getting dates in a document are altered by u1db
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
u1db-qt (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When putting and getting a QML date in the u1db database, the resulting strings are stored differently, even if you don't do any type conversion.
The result is that the resulting date is shifted by the current timezone, rendering an incorrect date.
Small example:
date is "Sun Jul 5 17:20:46 2015 GMT+0200"
This value is jsonified in var current = {"title":"First element"
console.log("Before save: " + JSON.stringify(
db.putDoc(tosave, current.billId);
var after = db.getDoc(
console.log("After save: " + JSON.stringify(
log is:
qml: Before save: {"title":"First element"
qml: After save: {"date"
-> Note that the date element has been altered and isn't returned in the same format The date should be returned unalterned.
launchpad seems to continue to report bug twice when clicking on submit, invalidating.