A setting (or even better, if it detects the correct settings based on locale or a browser setting) that puts time stamps in the 24 hour format would be great.
I recsearched some possibilities for kurai021/ToDo-List#11 today.
JavaScript's Date
object seem to come along with a method for that.
We have 24hr support. It is enabled by selected languages. English is considered as US, so the date is in am/pm format by default.
Okay, I've put mine on Dutch for the preferred 24hr setting.
I guess it's not a real issue anymore but some users (like myself) prefer everything in English but with 24hr as timestamps.
But since there is not much localized text going, I wouldn't really bother creating an option for this.
We have 24hr support. It is enabled by selected languages. English is considered as US, so the date is in am/pm format by default.
So, could we get some other English (e.g., en_UK
) which has 24h format?
I agree: binding a language to a hour format does not make much sense, couldn't we just have two separate settings?
agree with it. "English considered as US" is totally wrong in the locale's case.
This goes along with date formats as well. Currently, they're mm/dd/yyyy
for me, but I'd very much prefer dd/mm/yyyy
. Not sure if these are set based on language as well?
A simple workaround that I use is a bookmarklet that I run before the page has finished loading:
javascript:(function()%7Bd%3Dangular.element(document.body).injector().get('%24locale').DATETIME_FORMATS%3Bd.medium%3D"d` MMM y H%3Amm%3Ass"%3Bd.mediumDate%3D"d MMM y"%3Bd.mediumTime%3D"H%3Amm%3Ass"%3Bd.short%3D"yyyy-MM-dd H%3Amm"%3Bd.shortDate%3D"yyyy-MM-dd"%3Bd.shortTime%3D"H%3Amm"%7D)()
But it's a bit annoying to have to remember to click it, and it would be a lot nicer to have proper support for time and date formats.
it's a bit annoying to have to remember to click it
@Tanoh Couldn't you run it with dotjs?
I assume, the easiest way out would defer the formatting to angular-moment.
Date formats are defined in angular i18n.
The formatting calls happen in several controllers (search for $filter("date")
) instead of templates.
@Tanoh Can't you make userscript of that?
Please fix this, it is annoying as heck
Any update on this feature?
Yeah should be super simple and easy to add, please do so.
PRs welcome? ;-)
Most helpful comment
I agree: binding a language to a hour format does not make much sense, couldn't we just have two separate settings?