Re: [Geotools-devel] GEOT-5329: Proposal to avoid Date-shifting due to Timezones

2016-01-04 Thread Andrea Aime
On Mon, Jan 4, 2016 at 4:51 PM, Peter Borissow wrote: > If backward compatibility is an issue, perhaps instead of using the new > Java 8 classes, you can use a 3rd party library like Joda time: > > http://joda-time.sourceforge.net/quickstart.html > > They have a LocalDate, LocalTime, and LocalDat

Re: [Geotools-devel] GEOT-5329: Proposal to avoid Date-shifting due to Timezones

2016-01-04 Thread Peter Borissow
If backward compatibility is an issue, perhaps instead of using the new Java 8 classes, you can use a 3rd party library like Joda time: http://joda-time.sourceforge.net/quickstart.html They have a LocalDate, LocalTime, and LocalDateTime classes. Joda-Time is compatible with Java 5 and up. Peter

Re: [Geotools-devel] GEOT-5329: Proposal to avoid Date-shifting due to Timezones

2016-01-04 Thread Andrea Aime
On Mon, Jan 4, 2016 at 11:00 AM, Andreas Watermeyer < andreas.waterme...@its-telco.de> wrote: > Hi Andrea, > > thank you very much for your detailed response. > > I like your approach c) best because it is flexible enough and complete. > Yep, but also the most expensive to implement :-) a) is a b

Re: [Geotools-devel] GEOT-5329: Proposal to avoid Date-shifting due to Timezones

2016-01-04 Thread Andreas Watermeyer
Hi Andrea, thank you very much for your detailed response. I like your approach c) best because it is flexible enough and complete. I try to sum up: 1) In future releases of GT FeatureTypes may have attributes of type "LocalDate". Question: Which parts of GT have to be adjusted in order to hand