Nikky
03/18/2020, 4:20 PMEurope/Berlin
so i tried converting them like so
ISODateTimeFormat.dateTimeParser().parseDateTime(dateString).withZone(DateTimeZone.UTC)
and logging shows me the field should be 2020-03-18T16:17:00.000Z
but when i look into the database i see 2020-03-18 17:17:00
this looks almost as if exposed converts to the local timezone and then discards the timezone info (or DATETIME
has no timezone info?)
how can i make sure i save stuff as UTC
always ?spand
03/18/2020, 7:50 PM