java time

Mike Markiw III mmarkiw at speakeasy.net
Fri Oct 29 18:28:24 UTC 2004


> -----Original Message-----
> From: Ernie McCracken [mailto:holycrap at cavtel.net]
> Sent: Friday, October 29, 2004 06:21 PM
> To: fedora-list at redhat.com
> Subject: Re: java time
> 
> On Fri, Oct 29, 2004 at 10:06:48PM +0400, Vano Beridze wrote:
> > if I run a command date
> > it gives me the output
> > Fri Oct 29 22:03:50 GEST 2004
> > 
> > but If I compile and run a simple java program (with jdk1.4.2 or jdk1.5)
> > 
> > it gives me the output
> > Fri Oct 29 23:03:50 GEST 2004
> > 
> 
> Is it just me, or are the output of both the "date" command and the java
> program exactly the same? :-)

Close, but no cigar ;-)  The hours are different by 1 (22 hundred hours vs. 23 hundred hours).  I would check to see if the daylight savings time settings are the reason.  With a difference of only one hour, it seems like a strange but possible culprit.  Just a thought.

-Mike






More information about the fedora-list mailing list