W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2012

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

From: Mounir Lamouri <mounir@lamouri.fr>
Date: Wed, 14 Nov 2012 17:20:38 +0000
Message-ID: <50A3D2E6.3050609@lamouri.fr>
To: whatwg@lists.whatwg.org
On 13/11/12 10:51, Nicolas Froidure wrote:
> So making datetime having the behavior of datetime-local does not seem
> to be necessary for consistency. In any case, i think that we still need
> a way to define a datetime in a particular timezone since you cited one
> case in which it make sense.

Having *a* use case doesn't make a feature a must have. Developers can
write this feature themselves and as said, having a browser
implementation isn't going to help them here. It might be the opposite

> I think that whatever you decide for datetimes, it should always return
> a UTC value with only one format (yyyy-mm-dd hh:mm:ss or
> yyyy-mm-dd-Thh:mm:ssZ) to allow us to threat it the same way  whether it
> is relative to the user timezone or not.

'datetime' should indeed return something like "yyyy-mm-dd hh:mm:ss" so,
there is no timezone involved.

Received on Wednesday, 14 November 2012 17:57:30 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:17 UTC