Re: timezone agreement
Re: timezone agreement
- Subject: Re: timezone agreement
- From: Theodore Petrosky <email@hidden>
- Date: Tue, 15 Jan 2013 13:46:28 -0800 (PST)
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@hidden> wrote:
> From: Jesse Tayler <email@hidden>
> Subject: Re: timezone agreement
> To: "Theodore Petrosky" <email@hidden>
> Cc: "WebObjects Development" <email@hidden>
> 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@hidden>
> 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@hidden)
> > Help/Unsubscribe/Update your Subscription:
> >
> > This email sent to email@hidden
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden