albertopq/jquery_datepicker — Issue #7: Initial format of date is incorrect...
Author: digitalmoksha
Created: 2011-11-09 12:42:36+00:00
State: open

Hi,

When the datepicker initializes, and the text form field has a value, that value is initially displayed in the UTC format, such as "2012-03-23 00:00:00 UTC". Even though I set the dateFormat option when initializing the date picker.

<%= f.datepicker(:expire_on, :minDate => '0y', :maxDate => '5y',
:showOn => "both",
:buttonImage => "/plugin_assets/dm_hanuman/images/icon_calendar.gif",
:buttonImageOnly => true,
:showOtherMonths => true,
:gotoCurrent => true,
:dateFormat => 'MM d, yy', :changeMonth => true,
:changeYear => true) %>

Am I missing something obvious?