how do I set a 24 hour clock?

9,177 views
Skip to first unread message

Tom Brus

unread,
Mar 2, 2011, 3:48:14 PM3/2/11
to Jenkins Users
Hi,

I would like to see dates in a 24 hour representation instead of AM/
PM.

Anybody any tips how to get that done in Jenkins?

Thank,
Tom

Simon Wiest

unread,
Mar 2, 2011, 4:12:13 PM3/2/11
to jenkins...@googlegroups.com
Hi Tom,

this depends on the preferred locale setting of your browser.

More at
http://jenkins.361315.n4.nabble.com/Present-the-timestamp-in-Project-BuildHistory-in-24H-format-tt2313720.html#a2313870
.

Cheers,
Simon.
--
Tom Brus (02.03.2011 21:48):

Tom Brus

unread,
Mar 2, 2011, 4:46:43 PM3/2/11
to jenkins...@googlegroups.com, Simon Wiest
Thanks Simon,

I use Chrome on a Mac, my Mac is set to a 24 hour clock, does anybody know how to set Chrome to 24 hour clock?

Otherwise I will use the plugin...

Thanks,
Tom

Tom Brus

unread,
Mar 2, 2011, 4:58:38 PM3/2/11
to jenkins...@googlegroups.com, Simon Wiest
Unfortunately the plugin does not do the trick for me...

I can set the locale to dutch and all text is turned into dutch (which I do not want) but the clocks are still in AM/PM (which I do not want).

:-(

-Tom

teilo

unread,
Mar 2, 2011, 6:07:31 PM3/2/11
to Jenkins Users
Chrome -> Options -> Under The Hood
Change font and language settings
Languages - > Dutch - Nederlands

Then move it above the top English (American).

At least that's where it is in Chrome in windows. TFM doesn't seem to
say that this is supported on Mac (but could be out of date)?
http://www.google.com/support/chrome/bin/answer.py?hl=en&answer=95416

Tom Brus

unread,
Mar 3, 2011, 1:34:01 AM3/3/11
to jenkins...@googlegroups.com, teilo
Thanks Teilo, on the Mac there is no "Change font and language settings" there, at least not for me (Chrome 9.0.597.107) :-(

Going to do some googling I guess...

-Tom

Tom Brus

unread,
Mar 3, 2011, 3:14:00 AM3/3/11
to jenkins...@googlegroups.com, teilo
The manual page you refer to mentions it explicitly:

windows: "Change font and language settings"
mac: "Change font settings"

Furthermore, for the Mac it states:

Currently the browser interface language is determined by the Language & Text setting in System Preferences
 
this obviously is not true or not completely true since I have it on a 24 hour clock there.

Does anybody have a quick hint how to see what my browser sends to Jenkins in the area of locale?
If it is send correctly then Jenkins is to blame if it is not send correctly I can raise the issue for Chrome.

Thanks,
Tom

teilo

unread,
Mar 3, 2011, 3:32:58 AM3/3/11
to Jenkins Users
wireshark would help here. Or you could setup a simple logging proxy.

Fwiw I get 24 hour clock with the en-gb locale and a 12 hour with en-
gb.

If your locale by default is 12 hour and you have just changed it
locally ijn your time settings then the locale takes precedence.

On Mar 3, 8:14 am, Tom Brus <tomb...@gmail.com> wrote:
> The manual page you refer<http://www.google.com/support/chrome/bin/answer.py?hl=en&answer=95416>to mentions it explicitly:
>
> windows: "*Change font and language settings*"
> mac: "*Change font settings*"
>
> Furthermore, for the Mac it states:
>
> *Currently the browser interface language is determined by the Language &
> Text setting in System Preferences*

Tom Brus

unread,
Mar 3, 2011, 5:21:24 AM3/3/11
to jenkins...@googlegroups.com
I did some more testing.

It turns out that if I set my Mac to Dutch overall then I get a 24 hour clock in Jenkins.

The setup I normally have is: English as a basis and tweak to a 24 hour clock on top of that.
Being a developer it feels more natural to have english as interface language, all those dutch terms for technical concepts make me giggle somehow ;-)

Anyhow, Chrome obviously sends the locale over and not the details changed on top of that.
Jenkin does its rendering and interface language based on this.

Maybe my setup is a bit too weird... 
I would appreciate a 24/12 setting in Jenkins, overruling the locale, but I am aware that it might be a bit exotic.

Any supporters?

I will try to live with the current limitations I guess.

Thanks guys,

Tom

Simon Wiest

unread,
Mar 3, 2011, 6:01:53 AM3/3/11
to jenkins...@googlegroups.com
Hi Tom,

another workaround would be to choose "British English" (not just
"English") in your Mac OS language system preferences panel. It worked
for me using Chrome on Max OS X.

Of course, a better solution would be Hudson respecting the locale
plugin settings for formatting time/dates/numbers as well ;O).

Cheers,
Simon.
--
Tom Brus (03.03.2011 11:21):

Tom Brus

unread,
Mar 3, 2011, 6:24:08 AM3/3/11
to jenkins...@googlegroups.com
Hiha, that did the trick for me!

Thanks a lot Simon.

Markus Fischer

unread,
Mar 3, 2011, 5:41:58 PM3/3/11
to jenkins...@googlegroups.com
Hi,

I've been reading the thread and I also like to make a feature request
for having this not depend on the browser.

For me, language and date time formatting are different things. I
usually work with all my interfaces in English (German translations are
crap or sound dull), but date/time formatting really needs to be in my
locale.

An observation I made from FogBugz: it has a few different regional site
settings:
1) language
2) date, time and number format
3) time zone

It would be really great if 1) and 2) could be separate for Jenkins and
not necessarily depend on the browsers headers.

- Markus

tombrus

unread,
Mar 2, 2011, 3:26:44 PM3/2/11
to jenkins...@googlegroups.com
Hi,

I would like to see dates in a 24 hour representation instead of AM/PM.

Anybody any tips how to get that done in Jenkins?

Thank,
Tom

--
View this message in context: http://jenkins.361315.n4.nabble.com/how-do-I-set-a-24-hour-clock-tp3332230p3332230.html
Sent from the Jenkins users mailing list archive at Nabble.com.

tombrus

unread,
Mar 2, 2011, 7:52:15 AM3/2/11
to jenkins...@googlegroups.com
Hi,

I would like to see dates in a 24 hour representation instead of AM/PM.

Anybody any tips how to get that done in Jenkins?

Thank,
Tom

--
View this message in context: http://jenkins.361315.n4.nabble.com/how-do-I-set-a-24-hour-clock-tp3331433p3331433.html

Tom Brus

unread,
Mar 4, 2011, 3:25:02 AM3/4/11
to jenkins...@googlegroups.com
Sorry for the double posts.

I tried posting through nabble first (twice), but they were held up for some reason. I deleted the nabble posts and posted again on google groups. That went through straight away. Now obviously nabble woke up, forgot about my deletes and posted. 

I will not use nabble again, just google groups. Sorry again.

-Tom
Reply all
Reply to author
Forward
0 new messages