Is Joda Time’s DateTime class persisted differently when given in the UTC timezone? The timestamps look unusual (may be all zeroes).
Joda Time created them just fine with new DateTime(DateTimeZone.UTC). Are they persisted in PostgreSQL in an unfamiliar format?
"2012-09-02 23:43:44.642-07"
"2012-09-03 00:05:01.517-07"
"2012-09-03 00:10:30.704-07"
"1969-12-31 16:00:00-08"
"2012-09-03 00:23:40.556-07"
"1969-12-31 16:00:00-08"
"1969-12-31 16:00:00-08"
"1969-12-31 16:00:00-08"
The versions are:
- postgresql-9.1-901.jdbc4.jar
- DataNucleus Core/RDBMS 3.1.1
- DataNucleus Joda Time 3.1.0-release.
Thank you.
As detailed in the comments, the problem was solved by upgrading the JDBC4 driver for PostgreSQL to ‘postgresql-9.1-901-1.jdbc4.jar’.