current workaround is to cheat on the saved date in database, meaning,
removing again the timezone to the date object to shift it to UTC (it
will print as "<time in UTC> + (timezone)" which is untrue, so only do
that for the database object)

Example, just before putDoc:
tosave["date"] = new Date(tosave["date"].getTime() + 
tosave["date"].getTimezoneOffset() * 60000)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1482504

Title:
  Putting and then getting dates in a document are altered by u1db

To manage notifications about this bug go to:
https://bugs.launchpad.net/u1db-qt/+bug/1482504/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to