[webkit-dev] JSON.stringify(Date) losts the milliseconds information
shumpei.shiraishi at gmail.com
Sun Sep 6 22:30:03 PDT 2009
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());
This result seems that milliseconds information of date is lost.
For some applications, millis info is important and this behavior may
And in the ECMAScript 5th specification, Date.toISOString() (this
function is called from Date.prototype.toJSON()) is defined as:
...Date Time string format (188.8.131.52). *All fields are present* in
So, I think the Webkit's behavior should be treated as a bug, isn't it?
More information about the webkit-dev