Dear Magnolians

I said "probably" off-topic, but I'm not sure: 

I'm trying to send data from the client to Magnolia JSON-encoded with an AJAX 
request. This data also contains dates. I'm using json2.js [1] and it's 
JSON.stringify() method, and this method claims to convert the date to 
something like 2010-05-02T10:15:00Z. 

I also have date.js included [2]. This library too adds a "toJSON()" method to 
the Date class and it too claims to format the same way (2010-05-02T10:15:00Z). 

On Safari I do get the dates formatted like this - on Firefox however I get 
2010-05-02T10:15:00.000Z, so the dates have milliseconds! Since I had troubles 
with dates before - thanks to the calendar.js script added by the Magnolia 
author instance. So now I even tried to add my own Date.prototype.toJSON 
function after the page is loaded... but still I get to different date strings 
on these two browsers. Has anyone an idea where to look next?!

Thanks!
-will


[1]: http://www.JSON.org/js.html
[2]: http://www.datejs.com/

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to