<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Oct 11, 2016 at 9:46 AM, Hardy Ferentschik <span dir="ltr"><<a href="mailto:hardy@hibernate.org" target="_blank">hardy@hibernate.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> > > It is. If there is ever more than one TZ, you shouldn't be using<br>
> > LocalDate.<br>
> > > We cannot encourage people to use the wrong type for the job.<br>
> ><br>
> > Ahh, that's interesting. I agree, if you assume that in the case of a<br>
> > LocalDate only one<br>
> > single time zone is used, then all is good.<br>
><br>
><br>
> Not an assumption, design :-) A LocalDate means a date for which a single<br>
> *implicit* timezone is used, the one at the Clock. It's the idea of having<br>
> a wall clock in your room. Whatever date or time is shown there, you know<br>
> which timezone to apply.<br>
<br>
</span>As you mention later on, there are so many bitfalls when dealing with timezones,<br>
adding support for non instant based date/time types in BV will imo just add<br>
yet another potential error source.<br></blockquote><div><br></div><div>Not really. LocalDate should only be used for when there is a single, known timezone - and that's why in this situation there is zero confusion. If you use LocalDate when you shouldn't, you will have problems *everywhere*, with different JSRs, frameworks etc.</div><div><br></div><div>LocalDate should be a very common use case because the application:</div><div><br></div><div>- Is for a company with a single business unit or in which all of them are located in one timezone;</div><div>- Only runs in one country with one timezone;</div><div>- Runs server-side only and it uses its timezone for making decisions;</div><div>- Runs on a cell phone, for which all things should be based on the device</div><div>etc</div><div><br></div><div>All of these need decent support for LocalDate everywhere, including Bean Validation.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div></div><div class="gmail_extra">Regards,</div><div class="gmail_extra">Michael</div></div>