[webkit-dev] JSON.stringify(Date) losts the milliseconds information
eric at webkit.org
Tue Sep 8 05:36:09 PDT 2009
Please file a bug:http://webkit.org/quality/reporting.html
Ideally one which shows how our behavior differs from other browsers with a
nice clear test case.
On Sun, Sep 6, 2009 at 10:30 PM, 白石俊平 <shumpei.shiraishi at gmail.com> wrote:
> I tried to use the JSON.stringify() for Date object on Safari4 and
> WebKit nightly build(48096), so I got result as follows.
> > JSON.stringify(new Date());
> > 2009-09-07T04:49:43Z
> This result seems that milliseconds information of date is lost.
> For some applications, millis info is important and this behavior may
> be problem.
> And in the ECMAScript 5th specification, Date.toISOString() (this
> function is called from Date.prototype.toJSON()) is defined as:
> ...Date Time string format (18.104.22.168). *All fields are present* in
> the string...
> So, I think the Webkit's behavior should be treated as a bug, isn't it?
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev