Jump to:

1855 Posts in 1609 Topics by 562 members

Blog Module

SilverStripe Forums » Blog Module » Javascript Parse Error - SS2.4 and BlogModule Date

Discuss the Blog Module.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1236 Views
  • edk
    Community Member
    39 Posts

    Javascript Parse Error - SS2.4 and BlogModule Date Link to this post


    I know that Ingo announced that there had been an update to the Datetime API in 2.4.

    I am based in the U.S and using the Date and the calendar dropdown is rather quirky. The dates displayed in the field are in DD/MM/YYYY format (I would like them to be MM/DD/YYYY), but when I try to save the date as say March 26th 2010, it will throw a "JavaScript Parse Error" in the feedback in CMSMain window.

    I am hoping there is a simple Config setting to help solve this? Anyone have any ideas?


  • sparkalow
    Community Member
    8 Posts

    Re: Javascript Parse Error - SS2.4 and BlogModule Date Link to this post

    I have a dirty hack that is getting my by a hump:

    calender-setup.js in the thirdparty folder line 5:

    I changed to        ifFormat : "%m/%d/%Y", // the date format

    I suspect it is related to a locale setting in Zend_Date/ Sapphire Date, until someone fixes it or I can dig further this is what I'm going with and hope it does not affect anything else. Currently I only have the blog module in use.

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.