tazsingh / will_pickdate

Easy to use and well designed date picker widget with year in decades, month in year, day of month, and time of day support.

Home Page:http://tazsingh.github.io/will_pickdate/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

datetime picker does not load value on initialization

g8d3 opened this issue · comments

commented

I'm using this:

$('input').will_pickdate({
  timePicker: true,
  format: 'j F Y @ h:iA',
  inputOutputFormat: 'Y-m-d H:i:s'
});

On initialization, the input element shows, for example, 12 June 2012 10:45, but $('input').val() returns '' when it should return the displayed datetime.

Then, when I select a datetime $('input').val() returns selected datetime correctly

Thanks. I have confirmed this bug and will fix it soon.