Quantcast

Date format

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Date format

Corneil du Plessis
Our hudson installation displays the time in a quasi 12hour format instead of 24h format. 2007/08/23 06:41:58 when it should be 2007/08/23 18:41:58
 
How do I change the configuration of the date/time format?
 
Corneil
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Date format

Kohsuke Kawaguchi
Administrator
Corneil du Plessis wrote:
> Our hudson installation displays the time in a quasi 12hour format instead
> of 24h format. 2007/08/23 06:41:58 when it should be 2007/08/23 18:41:58
>  
> How do I change the configuration of the date/time format?

Currently the formatting of the date is locale sensitive. So on my
deployment it renders:

   Aug 23, 2007 1:53:23 AM

More precisely it's using DateFormat.getDateTimeInstance(MEDIUM,MEDIUM).
What is your default system locale?


I'm torn on this. I think people will find localized representations
easier to understand. But to fix issues like this, I'd have to make it
uniform.

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Change log order seems not intuitive

Marziou, Gael
Hello,

The "Changes" page, presents the most recent build at top which is fine but then it lists for each build the changes in reverse order (most recent change at bottom) which is counter intuitive to me.

I think it's especially true when thinking that most recent change may override previous changes.

Am I the only one to think this way?

Thanks,

Gael

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Date format

Corneil du Plessis
In reply to this post by Kohsuke Kawaguchi
We are running ubuntu 7.04 x86_64, Sun JDK 1.5.0_11-b03

I am not sure what the JVM will select, user.country=ZA in /systemInfo

Do you know of a way to influence the use of 24h over AM/PM by specifying
some system property to the JVM?

-----Original Message-----
From: Kohsuke Kawaguchi [mailto:[hidden email]]
Sent: 24 August 2007 18:08
To: [hidden email]
Subject: Re: Date format

Corneil du Plessis wrote:
> Our hudson installation displays the time in a quasi 12hour format
> instead of 24h format. 2007/08/23 06:41:58 when it should be
> 2007/08/23 18:41:58
>  
> How do I change the configuration of the date/time format?

Currently the formatting of the date is locale sensitive. So on my
deployment it renders:

   Aug 23, 2007 1:53:23 AM

More precisely it's using DateFormat.getDateTimeInstance(MEDIUM,MEDIUM).
What is your default system locale?


I'm torn on this. I think people will find localized representations easier
to understand. But to fix issues like this, I'd have to make it uniform.

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Date format

Kohsuke Kawaguchi
Administrator
Corneil du Plessis wrote:
> We are running ubuntu 7.04 x86_64, Sun JDK 1.5.0_11-b03
>
> I am not sure what the JVM will select, user.country=ZA in /systemInfo
>
> Do you know of a way to influence the use of 24h over AM/PM by specifying
> some system property to the JVM?

I believe "-Duser.language=en_US" would switch to the US locale. Might
be worth a try.


--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Change log order seems not intuitive

Kohsuke Kawaguchi
Administrator
In reply to this post by Marziou, Gael
Marziou, Gael wrote:
> Hello,
>
> The "Changes" page, presents the most recent build at top which is fine but then it lists for each build the changes in reverse order (most recent change at bottom) which is counter intuitive to me.
>
> I think it's especially true when thinking that most recent change may override previous changes.
>
> Am I the only one to think this way?

Which SCM has this problem? I'd like to fix it.


--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Change log order seems not intuitive

Gael Marziou
In reply to this post by Marziou, Gael
> Which SCM has this problem? I'd like to fix it.

It's Subversion.

Thanks

--

Gaƫl

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Change log order seems not intuitive

Kohsuke Kawaguchi
Administrator
Gael Marziou wrote:
>> Which SCM has this problem? I'd like to fix it.
>
> It's Subversion.

Thanks. Fixed in 1.133.

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Change log order seems not intuitive

Gael Marziou

> Thanks. Fixed in 1.133.
>
Thanks, that was fast!

Gael

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Date format

sipoyraj
In reply to this post by Corneil du Plessis
You can use simpledate format.

java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(
                                                "dd/MM/yyyy");
                                condate = sdf.parse("00/00/0000");

This blog explains few examples for the same,

http://www.zycomm.net/blog/?postid=3

Regards,
Raj
Previous Thread Next Thread
Loading...