Groundwire/Volunteers-for-Salesforce — Issue #15: VolunteersJobListing/FS web forms display Nan on mobile Safari
Author: davidhabib
Created: 2012-02-13 21:13:55+00:00
State: open

If you browser either VolunteersJobListing or VolunteersJobListingFS on a mobile Safari browser (iPhone), the shift start date and time shows up as Nan/Nan/Nan...

This is a known bug on mobile Safari that not all javascript Date parsing works. Salesforce is sending us the date in the format ,

'Sat Feb 18 17:00:00 GMT 2012'

which fails to be parsed into a date. There are lots of workarounds on the web, but they all deal with parsing dates that are strictly in number format (stuff like 2012-02-18 or 2/18/2012).

There must be a solution for this, since browsing the shifts in Salesforce thru mobile Safari shows datetime fields correctly.