Comment 1 for bug 1482504

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

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)