LukeL99/joda-time-mybatis — comment on commit 66ef76c2a65fabdcc2e962e45d1cef38c00e61db
File: src/main/java/org/joda/time/mybatis/handlers/LocalDateTypeHandler.java line 28
By fcamblor:

Is there any point, here, why you fix the timezone to UTC ?

In my case, I have a JVM environment with current time zone to GMT+1.
So LocalDate constructor with UTC timezone takes the given timestamp and subtract 1 hour to feet with current environment timezone.

Problem is when I retrieve my Date from databse, it is (for example) 2012-02-20 00:00:00 ... so, subtracting 1 hour from this changes the date to 2012-12-19 :(

Not passing any timezone to LocalDate constructor solves the problem but I'm wondering if it wouldn't do regression on some other cases...

WDYT ?