Open hifi opened 3 years ago
Date and time format is hard coded.
I see my local time in channel timeline or you talking about something else?
Formatting, 12/24 hour and date style. There should be an override for them.
Ah, I got you. IMO those should be done with localization/internationalization.
I still want the application to be in English but I'd at least like to have a 24 hour clock and a local date style (dd.mm.yyyy). It's not uncommon to have regional formatting separated from language as people have preferences. That may be obvious but I'm underlining it just in case.
Yes please, +1 for 24-hour clock format!
Date format is secondary (to me personally) and it would probably be quick/easy to add a checkbox setting for 12/24 hours compared to thinking through how to deal with various l8n quirks.
Rationale for prioritizing clock over date being that you look at timestamps a lot more than you look at dates (when it comes to chatting).
Re: https://github.com/ajbura/cinny/issues/60#issuecomment-900241399
Cinny (and every other website) would need to reimplement all internationalization options given by the internationalization APIs such that you can customize it differently for different websites. Internationalization is very hard and puts a huge burden on the website’s shoulders. A website should use the internationalization APIs directly since that is what the APIs are for. Allowing different internationalization for different sites should be a browser setting such that websites don’t have to reimplement custom logic. Granted, no browser seems to be doing that right now. But that might be worth a proposal to your favorite browser.
Re: #60 (comment)
Cinny (and every other website) would need to reimplement all internationalization options given by the internationalization APIs such that you can customize it differently for different websites. Internationalization is very hard and puts a huge burden on the website’s shoulders. A website should use the internationalization APIs directly since that is what the APIs are for. Allowing different internationalization for different sites should be a browser setting such that websites don’t have to reimplement custom logic. Granted, no browser seems to be doing that right now. But that might be worth a proposal to your favorite browser.
something i don't think this comment makes very clear is that right now cinny does not use the browser internationalization apis at all, instead opting for a nodejs library that only supports explicit datetime formats. this is why it always uses the american datetime format.
Would a setting like this be appropriate?
An option to let the user supply date formatting string in addition to predefined ones would be better.
(and please use yyyy-mm-dd
not yyyy/mm/dd
, as per iso-8601)
It would be nice to have a full datetime format string (and, if necessary, UI with presets for non-technical people). Xfce4 does it very well, for example
Ah, I got you. IMO those should be done with localization/internationalization.
I implemented it in #1602 (https://github.com/cinnyapp/cinny/pull/1602/commits/ef276389ae8642d07e0257b6570928053b7f6b53#diff-756dcbae1f478ea2a134d93e3d7eab916cf2ff092dd53e0da11b9a207e4bf456R503)
+1 from me
Is your feature request related to a problem? Please describe.
Date and time format is hard coded.
Describe the solution you'd like
Currently the defaults seem to be American English which is fine but having the option to at least set other common formats used around the world even without full localization/internationalization would be a welcome addition.