Make front and back end date input match for content saving
I have created a custom form in dotCMS which have a date field. Through jquery datepicker I am getting the input in the front end as dd/mm/yyyy. But when I am opening the back end content a different date is displaying there in m/d/yyyy format. Here's an example:
Front end input 14/05/2013 (dd/mm/yyyy)
when the value is going to the submitContent action and is getting saved in the back end its taking this same value as m/d/yyyy (dotCMS default). So what's happening is its taking 14 as month i.e, 1 year 2 months and 05 as the date. So the back-end value is becoming 2/5/2014(m/d/yyyy).
Added code to support front end custom date pattern.
Velocity variable for custom date pattern of DATE field :
#set($customDatePattern = "dd/MM/yyyy")
Velocity variable for custom date time pattern of DATE_TIME field :
#set($customDateTimePattern = "dd/MM/yyyy hh:mm:ss aa")
merged to master which is currently 2.6
Passed, tested on master // H2