Change date format in Zotero 5
I have followed these instructions, set intl.locale.matchOS to false, and set general.useragent.locale to en-GB.
But I still get the m/d/y format. My system is set to d/m/y. Windows 10.
Also, is there a way to remember the last UI settings? For example I like the right panel to be collapsed so I hide it, but everytime I reopen Zotero it reappears.
Thanks
But I still get the m/d/y format. My system is set to d/m/y. Windows 10.
Also, is there a way to remember the last UI settings? For example I like the right panel to be collapsed so I hide it, but everytime I reopen Zotero it reappears.
Thanks
Is there no setting in the about:config to control the side pane?
I'd have to check this on Windows, but the date format shouldn't actually be affected by the locale chosen — it's just drawn from the OS settings. At least on macOS, if I have Zotero set to Automatic and change my OS Region to the UK, I get UK dates. If I have my OS set to US but set Zotero to French, I get US dates.
Is that not what you're seeing?
I have found now a setting called English (World), which sets the date in zotero to d/m/y, so let's see how that goes.
new Date().toLocaleDateString()
and press Enter, what's the result?I can change Windows 10 language from EN (US) to EN (UK) but that does not change anything in Zotero. In Office and Total Commander dates are d/m/y.
I do not have the View -> Developer option in Firefox.
Zot5 is not stand alone and fully disconnected from Firefox?
@xxtraloud : where did you find an English (World) setting?
new Date().toLocaleDateString()
and press Enter, what's the result?"11/20/2017"
But: Outlook webmail also states "Sat 1/27" instead of 27/1..
Depending on Windows settings does not work. It's awkward to to switch my entry sequence to m/d/y (if below 12/12)
Zotero 5.0.35.1
And I can not understand, why it is impossible to add Date-Time format option in the Preferences? Let users decide what format they want to use in the User Interface.
Am I right?
https://codepen.io/andrewnicolaou/pen/pyYrGM
How do I get Zotero to respect the OS settings regarding time and date? I don't want Zotero to reinterprete regional, locale settings, I just want Zotero to follow what I have configured in my operating system.
Steps to reproduce:
Windows OS regional settings are set to to English (UK) and date settings adjusted to yyyy-MM-dd HH:mm. Zotero (/Juris-M) is set to Automatic (English).
Expected behaviour:
Zotero displays dates in lists as per the Windows OS settings, which is yyyy-MM-dd HH:mm.
Actual behaviour:
Zotero displays dates in dd/MM/yyyy HH:mm format.
Preferred resolution is that Zotero follows the OS wide settings. Work around would be to be able to correct the date format in Zotero.
I've also tried setting language to English (instead of Automatic), same date format, and to Swedish, same date format. I know the Swedish settings is wrong, we don't do reverse order, we actually follow the ISO standard - because if there are rules, we follow them :)
Fields like date published are very flexible and depends on how the item was imported and then are cited as per the selected style.
1. No locale:
20/10/2018
2. With locale 'en-GB':
20/10/2018
3. toDateString():
Sat Oct 20 2018
4. navigator.languages:
en-GB,en
It doesn't seem like JavaScript (in FF at least) follows the specific computer settings.
I.e. it seems Javascript will follow the top level regional locale, ignoring the specific variations available in the OS. But luckily there is aparently, at least in windows, a top-level locale for en-SE which works for me.
Interesting resources:
http://cldr.unicode.org/
https://www.unicode.org/cldr/charts/34/summary/en.html
As said before, my system language is set to en-GB; however if I set the language in Zotero in automatic, I see the date in the right pane in the US format mm/dd/yyyy, and not the en-GB format (see settings below).
I cannot change the OS settings, as I'm not the admin of this PC, the only way I can get the European date format is to set the language in zotero to Italian or French, but I would prefer to continue having the EN interface.
But the big problem here is that the dates of publications already recorded in the database, change format according with the language in zotero, with all the problems that this entail (sorting references in one folder, printing bibliographies, etc.), which is quite weird to me.
If I enter a date for a publication, I'm expecting this remain unchanged, while here If I enter say 1-9-2019 on my PC in Italian, and I go on the PC of a colleague with whom i share my library, this latter set to English, he will see the same record with publication 9-1-2019, which is definitely wrong. And if you work in a multi-language environment as I do, this is a mess...
Resuming we all have the OS langauge set to en-GB, but:
1) the date format remains US
2) if we set different Zotero languages, we end up with different dates for the same record.
Ho can we sort it out?
1. No locale:
16/1/2019
2. With locale 'en-GB':
16/01/2019
3. toDateString():
Wed Jan 16 2019
4. navigator.languages:
it,fr,en-GB
Can't tell you how this small thing irritates my brain. Why there is no option for just setting your own format instead of relying on the system one (which again..doesn't seems to work)?