caprover-frontend icon indicating copy to clipboard operation
caprover-frontend copied to clipboard

European date format

Open drmrbrewer opened this issue 1 year ago • 3 comments

Currently the date is displayed in US date format mmddyy:

image

Would be great if there was an option to display it in European date format ddmmyy.

drmrbrewer avatar Sep 21 '24 19:09 drmrbrewer

It seems to be using the browser locale Screenshot 2024-09-23 at 11 16 18

thgh avatar Sep 23 '24 09:09 thgh

@thgh on my languages setup page in Chrome I see:

image

IIRC, I have never changed these settings, so they are what they have always been. And based on these settings, it should be showing non-US date format? I can't see any other locale setting to change. I tried overriding the location in DevTools (see here) to Berlin and London, but regardless of location it's still showing US date format in CapRover.

drmrbrewer avatar Sep 23 '24 10:09 drmrbrewer

@thgh you're not on the latest version. This is a regression introduced as I was trying to make the column shorter.

githubsaturn avatar Sep 23 '24 16:09 githubsaturn

@githubsaturn I just updated to the latest CapRover and it seems that there is no change to the date format... these are today's date (6 Nov 2024):

image

Same for Last Deployed dates on App page:

image

My browser languages settings are unchanged (see above).

drmrbrewer avatar Nov 06 '24 19:11 drmrbrewer

See here: https://github.com/caprover/caprover/issues/2185

githubsaturn avatar Nov 07 '24 03:11 githubsaturn

OK. Not sure where moment is getting the idea that the date should be in US format, because both browser and system all seem to be set to European/UK date format... I don't see the US format anywhere apart from in CapRover:

system:

image

browser:

image

CapRover:

image

Anyway, hopefully the new fix will do it!

drmrbrewer avatar Nov 07 '24 11:11 drmrbrewer

Yea that's weird. Anyways the new fix used built-in Date so it should work 🤞

githubsaturn avatar Nov 07 '24 16:11 githubsaturn

Yep, I confirm that it's fixed in 1.13.2, thanks!

drmrbrewer avatar Nov 09 '24 18:11 drmrbrewer