How to customize format of "Date Added" and "Date Modified" display in middle pane?

I'd like to change the way the Date Added and Date Modified columns appear in the center pane. I'd prefer something like year.month.day.24-hr-time -- even though my underlying Mac OS locale is English, United States (en-US), with some OS display customizations that Zotero does not honor.

I did find these helpful instructions buried in a related but closed thread:

"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."

This has clearly worked for some, but I'm afraid I haven't had success. I restarted Zotero and my computer a number of times. Probably I am I missing something. Any advice is appreciated, with apologies for reviving what was apparently a touchy subject some years ago.

(For the record, this is purely a matter of personal preference.)

Environment: Zotero Standalone 5.0 beta up-to-date. Mac OS 10.13.6. Default locale en-US.
  • Hi, any answer to this question? I am having the same issue.
    I use windows in English language, but with Swedish regional settings.
    I would like to have date format to 2020.11.28 21.32
    instead now I get 11/28/2020 9.21p.m.
  • Zotero currently follows the system language/region, not any custom system date format. If the language is set to "English (US)" and/or the region is set to United States, it will use the US format. If you don't want to adjust your system settings, you can override Zotero's locale by changing the language in the Advanced pane of the Zotero preferences. (If you want it still in English but with non-US dates, choose "English (UK)", though that won't be YYYY-MM-DD.)
  • Ok, so I am trying to get it to follow the ISO 8601 format. How can you get that in language settings? Tried eng - CA, which works for date, but you get 12h time format. Trying to have ISO YYYY-MM-DD 24H format.
    Must be possible to fix that somehow?
  • Not with English — web browsers (and therefore Zotero, which is based on browser technology) default to 12h for Canadian English and I believe all other English locales. "French (Canada)" will do it, but…then Zotero will be in French.

    We really want to leave date settings to the OS, but since browsers and Zotero won't pick up the OS time setting, we could consider adding a hidden preference to force either 24h time with the selected locale or just force ISO 8601 for dates regardless of locale.
  • +1 on this issue.

    24h format is preferable and frees up screen real estate in the center pane.
    Optimal is providing users the option to define how the date/time format will appear in the center panel. I understand how restrictions on use entry can be helpful, but the center pane display could be customized without creating data integrity issues. For example, I would like to turn off "seconds", hours and minutes are sufficient 98% of the time.
  • >We really want to leave date settings to the OS, but since browsers and Zotero won't pick up the OS time setting, we could consider adding a hidden preference to force either 24h time with the selected locale or just force ISO 8601 for dates regardless of locale.

    These config features would be great to have!
  • +1 for separating date and time.
  • edited March 21, 2024
    Another +1 from India (the world's 2nd largest English-speaking country). Would prefer a config option to override English (US/UK/CAN) setting.
  • +1 for allowing ISO date as an option everywhere, regardless of whether any country uses it.
    +1 for allowing just date or date+time
    Also the "general.useragent.locale" config in Zotero 7 is now true/false, or I'm likely doing something wrong
  • +1 for ISO 8601 override option.
  • However, how to set date format is YYYY-MM-DD for "Date Added", "Date Modified", and "Accessed"? I'm still confused. I cannot found any set options in Config Editor. Thanks a lot!
  • How to just display date (does not include time). Because just date information is enough. Were can we set?
  • I just want to display the date information instead of date and time. It is important for small screen. Such as the following picture
    https://s3.amazonaws.com/zotero.org/images/forums/u14919309/g3hahe0iwv96oogej9uo.png
    How to remove the time information?
  • 我也希望能修改加入日期的格式。我设置的是英语界面,但在根据日期排序的时候,发现不是按照年月日的顺序,而是月日年的顺序。这想必是不合预期的。希望能修改日期格式,或者优化排序方式。
  • 我设置的是英语界面,但在根据日期排序的时候,发现不是按照年月日的顺序,而是月日年的顺序。
    设置English语言时,默认的日期格式为美国格式,即"DD-MM-YYYY"格式,设置English(UK)语言时,默认的日期格式为"MM-DD-YYYY"格式,然后,无论哪种格式,其只是显示问题,不影响列排序功能,列排序是遵循年月日的。
    BTW,也希望开发者可以考虑增加选项,格式化所有时间(Date/Date Added/Modified/ Accessed等)为ISO格式。Re: https://forums.zotero.org/discussion/comment/479992/#Comment_479992
  • 感谢您的回复。我做了以下尝试:
    1、关闭所有插件以后,排序是正确的。
    2、逐一开启插件,按照添加日期和修改日期的排序是正常的,来回切换也正常。
    3、我发现如下情况会出现排序问题:我利用style插件创建了视图组A和B,A含有date added列,B含有date modified列。如果A按照date added排序后,再切换到B按照date modified排序,或反之,那么排序就是不正确的。
    这种情况只在视图组切换后发生,只在一种视图下按两种时间排序都是正常的。稍后我会向插件作者反应,谢谢
Sign In or Register to comment.