Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Date is not loaded correctly bug #9

Merged
merged 6 commits into from
Apr 26, 2011
Merged

Conversation

chasetec
Copy link
Contributor

See: #8

I think the bug wasn't just a mobile Safari issue. I was also getting days off by one in the picker with Firefox. Looks like 2011-01-01 isn't a support string format. You can avoid the format issues by changing:

date = new Date(d_yar + "-" + d_mon + "-" + d_day);

to:

date = new Date(d_yar, d_mon-1, d_day);

Tested on a Mac with Firefox4, Desktop Safari, iPhone simulator, and an iPhone4.

@jtsage
Copy link
Owner

jtsage commented Apr 26, 2011

Yarg, long weekend with only a netbook - glanced at what you did, looks great, I'll try and get the merge in tommorow. Thanks!

jtsage added a commit that referenced this pull request Apr 26, 2011
Fix for Date is not loaded correctly bug
@jtsage jtsage merged commit 24546de into jtsage:master Apr 26, 2011
@jtsage
Copy link
Owner

jtsage commented Apr 26, 2011

Very nice, added!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants