On Thu, Oct 17, 2013 at 8:34 PM, Daniel Kurka <[email protected]> wrote:
> Hi all,
>
> IE10 does not handle dates the same way other browser do anymore. This
> breaks a test in the EmulSuite.
>
> // IE10 (Standards mode)
> >> new Date(Date.parse("3/31/2000")).toUTCString()
> "Fri, 31 Mar 2000 07:00:00 UTC"
>
> // IE9 (Standards mode) and previous versions of IE
> >> new Date(Date.parse("3/31/2000")).toUTCString()
> "Fri, 31 Mar 2000 08:00:00 UTC"
>
> MS now uses windows time zones to calculate historic dates, see:
>
> http://blogs.msdn.com/b/ie/archive/2013/03/25/spring-forward-advancing-historical-date-and-time-calculations-on-the-web.aspx
>
>
>
> On the Java side:
>
> http://docs.oracle.com/javase/7/docs/api/java/util/Date.html#parse(java.lang.String)
>
> "Once the entire string s has been scanned, it is converted to a time
> result in one of two ways. If a time zone or time-zone offset has been
> recognized, then the year, month, day of month, hour, minute, and second
> are interpreted in UTC and then the time-zone offset is applied. Otherwise,
> the year, month, day of month, hour, minute, and second are interpreted in
> the local time zone."
>
>
GWT's emulation of java.util.Date already doesn't interpret time-zone or
time-zone offsets during parsing, right?
The only thing, the emul java.util.Date does is fixing DST if non-String
constructors are used. On the other hand, we do our own parsing in
DateTimeFormat. So we haven't been really fixing browser differences in
Date.parse.
On the other hand, if there is a behavior difference for DateTimeFormat in
different browsers, that is a different story, and we should probably fix
that.
> I appreciate input on this!
>
> -Daniel
>
> --
> http://groups.google.com/group/Google-Web-Toolkit-Contributors
> ---
> You received this message because you are subscribed to the Google Groups
> "GWT Contributors" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
---
You received this message because you are subscribed to the Google Groups "GWT
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.