asmaoui / jquery-datepicker

Automatically exported from code.google.com/p/jquery-datepicker
0 stars 0 forks source link

Using an inline date-picker linked to a text input, calendar does not update when YEAR changes. #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Type a date (anything that strtotime() understands will work) in the birthday 
text input.
Change the month or day, the calendar updates.
Change the year - no updating.  However the new year is being stored internally.

What is the expected output? What do you see instead?
The calendar should jump to the following year, or there should be a dpUpdate 
function that 
forces a redraw.

Please provide a URL to a page displaying the problem.
http://www.fusionbox.com/clients/colin/

What version of the datepicker are you using? On what operating system? And 
Which Browser?
2.0 - latest as of 2008-12-30

Original issue reported on code.google.com by coli...@gmail.com on 30 Dec 2008 at 9:18

GoogleCodeExporter commented 9 years ago
Thanks for the report and the test page - I'll look into it ASAP.

One thing I notice on your test page is that the selected date is one day 
earlier
than what I type into the field on my system (Firefox 3, Windows XP in Pacific 
Time
Zone). I ran into a very similar problem myself yesterday when sending int time
values from a server to JS and I think it may be related to timezones. To avoid 
any
ambiguity I'd recommend getting your strtotime.php script to return the date as 
a
string in Date.format...

Original comment by kelvin.l...@gmail.com on 30 Dec 2008 at 9:31

GoogleCodeExporter commented 9 years ago
yeah, I noticed that timezone thing at one point, too.  that's just a test 
page, so I just set the timezone to 
America/Denver (where I am), but I'll keep it in mind for the live site.  I 
guess I'll need to send the timezone 
along with the time string in the AJAX call.
# colin

Original comment by coli...@gmail.com on 31 Dec 2008 at 3:15

GoogleCodeExporter commented 9 years ago
Sorry for the delay, fixed in r21.

Original comment by kelvin.l...@gmail.com on 11 Jan 2009 at 7:45