You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

IE date is always May 3910 Created May 19, 2010

This thread is solved

Views: 3729     Replies: 9     Last reply Dec 6, 2011  
You must login first before you can use this feature

headchem

Posts: 4

Registered:
May 19, 2010

IE date is always May 3910

Posted: May 19, 2010

My system clock is set properly, but the demo athttp://flowplayer.org/tools/dateinput/index.html and all the other demo pages show May 3910 as the current date.

I've searched and found this one post with a similar problem.http://www.google.pl/support/forum/p/Calendar/thread?tid=747436baba5dd923&hl=en

mefjuuz

Posts: 1

Registered:
May 20, 2010

» IE date is always May 3910

Posted: May 20, 2010

Reply to: IE date is always May 3910, from headchem
The same here:
http://img199.imageshack.us/img199/1217/jqtdiproblem.png

It's a major problem, so it would be great to see proper dateinput version.
Thanks!

RuiRebelo

Posts: 3

Registered:
May 25, 2010

» IE date is always May 3910

Posted: May 25, 2010

Reply to: IE date is always May 3910, from headchem
On dateinput.js, line 463 on setValue() method there is a line executing:
year = date.getYear() + 1900;
getYear() will return full year in IE8 and years past 1900 in FF.
I suggest changing the line into
year = date.getFullYear();
since getYear() is deprecated.
I tested this solution in IE8, Chrome and FF.

headchem

Posts: 4

Registered:
May 19, 2010

» » IE date is always May 3910

Posted: May 25, 2010

Reply to: » IE date is always May 3910, from RuiRebelo
I tested in IE7, and your fix also worked there.

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» » IE date is always May 3910

Posted: May 26, 2010

Reply to: » IE date is always May 3910, from RuiRebelo
The latest version on github is now using getFullYear()

http://github.com/jquerytools/jquerytools/commit/4ce987222222049efb895a7420182db4985a58f3

will be fixed for v1.2.3.

THANKS!

yannyannyann

Posts: 1

Registered:
Jun 4, 2010

» » » IE date is always May 3910

Posted: Jun 4, 2010

Reply to: » » IE date is always May 3910, from tipiirai
Thanks.
I had the same bug happening in Mac Opera.