"Accessed" field displays date wrong
Hello,
When I put a date into the "accessed" field on a conference paper, it shows a different date when the field is active than when inactive.
There are side-by-side screen shots located at:
http://dl.dropbox.com/u/993560/dateError.png
I am able to duplicate this error by entering the date in a format like "2 July 2010" or "2010-07-02". Using this example, I get the date "10-07-2010" when I click away from the box.
Seth
Zotero Standalone 3.0b2.1
Chromium 15.0.874.106 (Developer Build 107270 Linux) Ubuntu 11.10
Zotero Connector for Chrome 2.999.3
Kbuntu 11.10 x86_64
When I put a date into the "accessed" field on a conference paper, it shows a different date when the field is active than when inactive.
There are side-by-side screen shots located at:
http://dl.dropbox.com/u/993560/dateError.png
I am able to duplicate this error by entering the date in a format like "2 July 2010" or "2010-07-02". Using this example, I get the date "10-07-2010" when I click away from the box.
Seth
Zotero Standalone 3.0b2.1
Chromium 15.0.874.106 (Developer Build 107270 Linux) Ubuntu 11.10
Zotero Connector for Chrome 2.999.3
Kbuntu 11.10 x86_64
Cheers,
Seth
Can you provide a Debug ID for editing and saving of that field?
If so, I'll provide a dev XPI that may help us figure out what's going on here.
Date show when inactive: "10-07-2010". When active: "2010-07-02".
Debug ID D2008651729
Seth
Debug ID D1087060500
Seth
D382201073
Nice test. The output is (Firefox 9.0.1):
""
Date is Fri Jul 02 2010 00:00:00 GMT-0700 (PDT)
toLocaleString: Fri 02 Jul 2010 12:00:00 AM PDT
toLocaleDateString: 10-07-2010
""
Interestingly in Chromium (16.0.912.75 (Developer Build 116452 Linux)) it is displayed correctly:
""
Date is Fri Jul 02 2010 00:00:00 GMT-0700 (PDT)
toLocaleString: Fri Jul 02 2010 00:00:00 GMT-0700 (PDT)
toLocaleDateString: Friday, July 02, 2010
""
Seth
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/752007
You might be able to adjust your locale settings to work around it, either in Firefox/Zotero (with the general.useragent.locale setting in about:config, accessible via the Advanced prefs in Standalone) or in the system locale settings.
Thanks for trouble shooting this. I added comments to the launchpad report to get it confirmed and also copy/pasted your markup to test the problem into the report. Hopefully they can address it. I see that the launchpad bug was filed against Firefox 3.6.
Seth