Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

[15:45:01 CDT(-0500)] <athena> that way we can protect any sensitive weirdness in that class too

[15:45:11 CDT(-0500)] <EricDalquist> yup

[15:45:18 CDT(-0500)] <athena> just expose some read-only data and let it be cleaner (smile)

[16:54:46 CDT(-0500)] <EricDalquist> I really hate dates and times

[17:20:14 CDT(-0500)] <athena> no kidding.

[17:20:23 CDT(-0500)] <athena> amazing how painful that stuff can be

[17:20:33 CDT(-0500)] <EricDalquist> though this appears to be a bug in our jodatime -> hibernate binding library

[17:20:39 CDT(-0500)] <EricDalquist> the code is for storing local dates

[17:20:48 CDT(-0500)] <EricDalquist> and since SQL doesn't understand TZs

[17:21:05 CDT(-0500)] <EricDalquist> it does LocalDate -> Java Date in UTC

[17:21:11 CDT(-0500)] <EricDalquist> but on the way back out that TZ coversion breaks

[17:21:19 CDT(-0500)] <EricDalquist> so 2012-09-15 becomes 2012-09-14 when storing

[17:21:33 CDT(-0500)] <EricDalquist> but 2012-09-14 doesn't go back to 2012-09-15 when reading