<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">&lt;<a href="mailto:hardy@hibernate.org" target="_blank">hardy@hibernate.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">&gt; &gt; &gt; It is. If there is ever more than one TZ, you shouldn&#39;t be using<br>
&gt; &gt; LocalDate.<br>
&gt; &gt; &gt; We cannot encourage people to use the wrong type for the job.<br>
&gt; &gt;<br>
&gt; &gt; Ahh, that&#39;s interesting. I agree, if you assume that in the case of a<br>
&gt; &gt; LocalDate only one<br>
&gt; &gt; single time zone is used, then all is good.<br>
&gt;<br>
&gt;<br>
&gt; Not an assumption, design :-) A LocalDate means a date for which a single<br>
&gt; *implicit* timezone is used, the one at the Clock. It&#39;s the idea of having<br>
&gt; a wall clock in your room. Whatever date or time is shown there, you know<br>
&gt; 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&#39;s why in this situation there is zero confusion. If you use LocalDate when you shouldn&#39;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>