Skip to content Skip to sidebar Skip to footer

Joda Datetime Datetimezone

+I have a time tracking app that uses joda DateTime to persist Start/End time with ORM-lite. ORM-lite stores a Joda DateTime as long in database by using its millis. Joda DateTime.

Solution 1:

I guess I had a wrong understanding of how things work.

Sample:

DateTimedtNow=newDateTime(1414479634046);

I thought that "dtNow" would change when switching from normal time to DST. I thought that DST behalves like a separate time zone but this isn't the case. When a DateTime is "restored" from Millis Joda looks at the date and determines if it is normal or DST.

Post a Comment for "Joda Datetime Datetimezone"