Zotero appearance - How do I change date format in "Date Added?
Hi,
I have recently discovered how useful the 'date added " column is in allowing me to remember what I have added recently. However, I find the "Month / Day / Year" format most disconcerting and a kind of psychological stumbling block, since as an Australian I consistently work with "Day/ Month / Year". I can't see an obvious way to change this in Zotero "Options". Is there one?
I have recently discovered how useful the 'date added " column is in allowing me to remember what I have added recently. However, I find the "Month / Day / Year" format most disconcerting and a kind of psychological stumbling block, since as an Australian I consistently work with "Day/ Month / Year". I can't see an obvious way to change this in Zotero "Options". Is there one?
This discussion has been closed.
On OS X and Linux, Zotero tries to figure out the date order from the value of the JavaScript toLocaleDateString() function. You can see what this is by copying "javascript:alert(new Date().toLocaleDateString())" (without quotes) into the Firefox address bar. For some reason, though, at least on my Mac, this format doesn't change even if I adjust my OS settings and restart Firefox. So it may be best to take out this auto-detection and just rely on the hard-coded locale rules mentioned above.
Scary but effective for technodummies! I'm using Windows. I changed it to en-GB and the dates now look "normal" to me.
However it would be really nice to have a date option (or a general set of appearance options) in "Options".
Thanks
The real issue is that you're essentially using a non-native build of Firefox, even though it happens to be in the same language. You presumably downloaded the U.S. English Firefox build, but it sounds like the U.K. English Firefox build would be better for you, as, among other things, it would cause Zotero to display dates correctly without your adjusting any settings. I don't know which version the Firefox site suggests for Australian users, but for most users it will automatically suggest a version in the appropriate language and this wouldn't be an issue (because all non-U.S. builds use day-month-year).
For people who can't switch Firefox builds, there are Firefox extensions to make changing the locale setting easier (which will affect extensions like Zotero, spell-check, and website settings but not the main Firefox interface).
Zotero looks like it did after I modified about:config. It would be good to have a spell check for titles in Zotero now that things spell ok in Firefox!
I'm on UK everything, with a GB firefox locale, but the
javascript:alert(new Date().toLocaleDateString())
is still in US order.
Can this be changed? By me? Or in the next build?
Thanks!
I am using Firefox 3.6.9 omn Mac OS X 10.6. It seems to be a Swedish build (if I read the about dialogue message correct), but the date format is still the US american one (which I always have found terribly confusing, btw. Who on earth came up with that one?).
I have tried the recommended locale switcher extension, but it did not make any difference. (The javascript function still returns the US format.)
It thus seems to be a Firefox bug, but it hits Zotero.
general.useragent.locale
intl.accept_languages
I also set "intl.locale.matchOS" to false but that didn't help either. This seems like a bug to me. Any ideas?
Come on Zotero devs, this needs fixing properly. Add the ability to select the US format, UK format, or ISO format (long and/or short).
There is no way to fix the Zotero bad US date format. I think only the US uses their odd mm/dd/yy date system. The Zotero programmers just need to pick up the Locale of the machine properly - it appears that they have done some sloppy coding not taking the Locale into account! This is really a BUG.
Come on guys. Please fix this and make the WORLD happy. Thanks in advance.
Thanks indeed for your personal response! I am sorry if I was rather tough onwhat is otherwise a tremendously tool.
I wanted to get some attention so I was tough. Honestly, you should test these things and be more realistic about the rest of the planet outside of the USA. The fact is many US software house are really very sloppy with Locales, perhaps you are seeing this in what Mozilla has produced!
Any way thanks again and I shall think of some other motivational techniques in the future! I look forward to 3.0.4.
All the best,
Steve
Can you PLEASE give us some idea when this will be fixed?
Unfortunately, 1) Coming from the US, they really do not realise just how irksome this problem is to the rest of the world -- during the design they probably did not even think that there could be more than one date system. 2) So consequently, they did not allow for non-US formats when the initial coding was done. It is probably hardcoded.
Thus, it is really hard to modify now when it should have been trivial. This explains the delay?
Its a great program but we are let down by confusing dates.
Dan -- Please put this in the schedule and make Zotero a global program.
Steven_Laycock: I highly recommend you read Zotero's date handling code before making any more libelous claims.
Ooops. Sorry, I seem to have rattled your cage.
"Libelous claim" eek -- that IS STRONG. Seems we REALLY do have a problem of understanding!
I am using Zotero standalone. And, of course, I am not running an en-US version of Firefox. I am running an en-GB version of course, other users world wide will run many languages! If I were running a en-US version I probably would not care.
Also, don't you think it rather odd that a simple user with a simple request is asked by you to read code (scary)! What I can see at the end that
"default:
_localeDateOrder = 'dmy'; "
BUT this is NOT what is output so it IS a BUG. IF this code snippet is from Zotero Standalone, then it was NOT TESTED for THE WORLD. Progress!
Next step, PLEASE, can somebody who understands these things PLEASE test Simon's bit code running other versions of Firefox (Not the US version) and make what will probably be a simple correction. The first comment here for the bug was in 2009.
Request to Simon and Dan, why do you both get so upset? Zotero is a great job. It really is. Please understand date format is a legitimate concern.
Hope nobody considers this libelous -- if so, my apologies in advance.
@Steven_Laycock: You wrote: With this statement, you attributed insensitivity to the developers of which they do not suffer. By examining the source code, you will see that they did indeed consider the importance of differing date formats across language domains. If you can't read and interpret the source, you aren't in a position to make broad assertions of this kind, and your best way forward would be to back down a bit, and read the chapter on civility.
In Zotero Standalone, open about:config (Preferences->Advanced->about:config), set intl.locale.matchOS to false, and set general.useragent.locale to en-GB and see if it makes things look like you want them to. If this is the issue, it's a bug we inherit from Mozilla and it's probably not going to be an easy fix.
"Coming from the US, they really do not realise just how irksome this problem is to the rest of the world -- during the design they probably did not even think that there could be more than one date system." ==> I withdraw this remark.
This was written because I've run in to problems before with parochialism. I could tell you most amusing stories (living in Texas, Atlanta, Boston and California). Sorry about "broad assertions". My evidence was not by looking at the code, but seeing that the problem existed since 2009. It is irksome, and appears to have been ignored!
Simon **THANKS**. I'll test it and report. I was running Zotero standalone. The main Zotero for Firefox worked fine for me before. I use Chrome a lot now because I had some serious performance slowdowns with versions of Firefox which have now since been fixed.
Frank (I guess) YOU ARE A HERO!! So much better!
The (minor) cage rattling seems to have worked. REALLY sorry for the offense. Your instructions were not quite right so I shall clarify for other users.
Update to latest version, for me 3.0.8
Tools ==> Options ==> Miscellaneous (at bottom left) ==> warning message ==> set intl.locale.matchOS to false, and set general.useragent.locale to en-GB
I owe you one!! :) :) :)
So its a Mozilla bug it would appear. Perhaps tell them?
This isn't a high priority issue for Mozilla. They provide different versions of Firefox for every locale, so they don't hit this code path.
With that said, please don't post to the bug unless you have a patch. It's not going to help.
Why is it so hard to get this to display in a standard format?
Just out of curiosity: why do you need that?
(and date added already displays in a standard format).
I had a GREAT deal of trouble trying to get them to take these requests seriously. Often, this seems to be a cultural issue and the developers (heros otherwise) have difficulty realising how irksome these nasties can be.
Try looking at the above when Simon helped me. There are a great deal of parameters than can be changed. See above my post of 21st August 2012.
I bet if you changed to an Asian date locale that it would work.
Otherwise. Simon (or Frank) "the Gurus", would know what to do. I am no expert.
BEST OF LUCK