Re: [whatwg] 'datetime-local' and 'datetime' comments

On 27/11/2012 09:39, Mikko Rantalainen wrote:
> Nicolas Froidure, 2012-11-13 12:51 (Europe/Helsinki):
>    
>> In my opinion, it's normal that datetime and datetime-local have
>> timezone and date/time don't. A date is timezone independant and time is
>> more a duration then a time relative to a particular instant of a
>> particular day.
>>      
> Unfortunately, "date" is definitely NOT timezone independent. When do
> you think "2012-11-28" does start? Some possible "correct choices":
>
>  2012-11-27T16:00:00Z (Googleplex in Mountain View, California)
>  2012-11-28T00:00:00Z (UTC)
>  2012-11-28T02:00:00Z (Europe/Helsinki, my time zone)
>  2012-11-28T11:00:00Z (Ian's time zone, I believe)
>    
I think you're wrong. My birthday is 1983-04-28, i'll not program a 
party on 2012-04-29 if i live on a different timezone. I don't know the 
time of my birth, i just remember the date. So, for me a date is a 
generalization of a time with an error range of 24h.

If you want to save a time, just use a datetime field. I you ask a date 
you probably won't to save a precise time, just a day. Christmas day, a 
birthday or the mother's day.

Given that things, i suppose a date is timezone independent.
---
Nicolas Froidure

Received on Tuesday, 27 November 2012 16:57:13 UTC