briefs=# SELECT  current_setting('TIMEZONE');
 current_setting 
-----------------
 US/Eastern
(1 row)

however if I add to the application.java

static {
    TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
}

My app shows what the backend says is correct. Why UTC works is beyond me.

Ted


--- On Tue, 1/15/13, Jesse Tayler <[email protected]> wrote:

> From: Jesse Tayler <[email protected]>
> Subject: Re: timezone agreement
> To: "Theodore Petrosky" <[email protected]>
> Cc: "WebObjects Development" <[email protected]>
> Date: Tuesday, January 15, 2013, 4:44 PM
> 
> I've seen servers with missing or incomplete timezone files
> but unless you set the timezone yourself, are you certain of
> where the time has changed?
> 
> not your database? you are certain it is the server? date
> returns the wrong tz or different tz from the command line?
> 
> I ask because dates are complicated and the troubles I've
> seen seem to be greatly varied in their root cause.
> 
> got more information on the situation?
> 
> 
> 
> On Jan 15, 2013, at 3:45 PM, Theodore Petrosky <[email protected]>
> wrote:
> 
> > is there a property to get my app to agree with the
> backend on timezone? I don't know what I touched but all of
> a sudden, all my times are 5 hours off.
> > 
> > There must be a simple solution and a property would be
> nice.
> > 
> > Ted
> > 
> > _______________________________________________
> > Do not post admin requests to the list. They will be
> ignored.
> > Webobjects-dev mailing list      ([email protected])
> > Help/Unsubscribe/Update your Subscription:
> > https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com
> > 
> > This email sent to [email protected]
> 
> 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to