Menu

#13 date strings with time zone offset are not coerced reliably

v10.0 Windows
open
nobody
4
2004-12-03
2004-12-03
Andre Radke
No

Originally reported by Dave Winer for the Windows version:

---

Try this in the Quick Script window:

date ("Wed, 17 Nov 2004 18:45:23 -0800")

You get a boolean value of true.

If you drop off the -0800 you get the correct time in
the local time zone.

---

On Mac OS X, the coercion actually works but ignores
the time zone offset.

I don't know if the coercion should work or not, but
returning true (on Windows) is definitely a bug. It
should either return a date or throw a script error
indicating that the value couldn't be coerced to a date.

Reference:
http://groups.yahoo.com/group/frontierkernel/message/498

Discussion

  • Andre Radke

    Andre Radke - 2004-12-03
    • summary: date strings with atime zone offset are not coerced reliably --> date strings with time zone offset are not coerced reliably
     
  • Andre Radke

    Andre Radke - 2004-12-03

    Logged In: YES
    user_id=1137587

    [fixed typo in summary]

     

Log in to post a comment.

Auth0 Logo