ClusterCockpit / cc-backend

Web frontend and API backend server for ClusterCockpit Monitoring Framework
https://www.clustercockpit.org
MIT License
15 stars 14 forks source link

Time format #181

Closed giesselmann closed 1 year ago

giesselmann commented 1 year ago

Hi,

I would like to suggest a change of the current time format in CC as it is sometimes very confusing. Example 11:48 in CC is 11:48 in 24h format, but 12:48AM is 00:48. This is for both job-start time and configuration of filters counterintuitive. For filters it would also be easier to just enter a 24h format value.

Cheers,

Pay

spacehamster87 commented 1 year ago

Hi there! Could you point to a specific example via link to the view, a way to reproduce, or a screenshot?

As far as I am concerned, the 24-Hour format is already in use for filters and display of starting times, as I can not see a way to change to AM/PM format locally or at our live system. Might be a case of the individual browsers locale perhaps?

Filter: st24h

Job-Table Info: st2

giesselmann commented 1 year ago

Hmm, that's funny, for me it looks like this: image and image

And you're right, if I go to https://www.localeplanet.com/support/browser.html I get

date.toLocaleDateString(): 7/17/2023
date.toLocaleTimeString(): 4:37:22 PM
date.toLocaleString(): 7/17/2023, 4:37:22 PM
date.toUTCString(): Mon, 17 Jul 2023 14:37:22 GMT

I was sure, the website would make this decision, will check my local config...