My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 835: event.start date format changes in different browsers
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Mar 2011


Sign in to add a comment
 
Reported by schli...@gmail.com, Feb 15, 2011
In Full Calendar, I populate a ui.dialog form on event click, allowing the user to edit the event details.

The form I use, splits the start date into separate date and time components for various ui related reasons.

Thus I need to do a little date parsing.

In firefox, chrome and safai, the date format returned by event.start is as follows:  

"Tue Feb 15 2011 14:00:00 GMT+1100 (EST)"

In IE8 However (have not tested other ie versions) the date format returned by event.start looks like this:

"Tue Feb 15 14:00:00 UTC+1100 2011"

This obviously causes issues with date parsing in my code.

ps. What functions in FullCalendar handles the parsing of JSON dates ?
Feb 17, 2011
Project Member #1 althaus.it
The given start is a JS date object so you should be able to do any formatting you need with the build in Date functions.

If you print the given start its toString() function seems to differ from browser to browser.
Mar 24, 2011
Project Member #2 adamrs...@gmail.com
id definitely use the ISO8601 format instead
http://arshaw.com/fullcalendar/docs/event_data/Event_Object/
Status: Done
Sign in to add a comment

Powered by Google Project Hosting