Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#5113 closed bug (notabug)

dateFormat causes default input date to reset to today

Reported by: rvallee Owned by:
Priority: minor Milestone:
Component: ui.datepicker Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:

Description

When specifying a dateFormat (in my case dd/mm/yy), the default input value (i.e. value="date" in the HTML form) is reset to today's date.

During loading, I first see the date change, then the format apply.

So in short:

  • Input field has 31/01/2010 value for January 31, 2010
  • During datepicker load, input field value changes to 01/30/2010 (today's date in default format)
  • dateFormat applies, changing input display to 30/01/2010, today's date in dateFormat

Change History (3)

comment:1 Changed 10 years ago by rvallee

Nevermind...

I was copy-pasting options and this problem only occurs if there are 2 dateFormat declarations..

comment:2 Changed 10 years ago by Scott González

Resolution: invalid
Status: newclosed

comment:3 Changed 8 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.