Re: SQL solution for my JDBC timezone issue

From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: George Woodring <george(dot)woodring(at)iglass(dot)net>
Cc: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: SQL solution for my JDBC timezone issue
Date: 2015-02-24 14:30:43
Message-ID: CADK3HH+xtCZytt-6o=AizVVwqCZQJfnnat0v0HLeB0xE2-Aqjw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-jdbc

George,

One solution for you might be to write a C function which gets the OS
timezone and then you can execute set timezone=server_timezone();

Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca

On 24 February 2015 at 09:25, George Woodring <george(dot)woodring(at)iglass(dot)net>
wrote:

> -- In your original post you mentioned that access to the databases is
> through a Web server.
>
> -- Is there just one Web server with one time zone?
>
> We have 2 web servers that are clustered together. They are both set to
> Eastern since that is the timezone they are located in.
>
> iGLASS Networks
> www.iglass.net
>
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2015-02-24 15:06:31 Re: Sequences not moved to new tablespace
Previous Message George Woodring 2015-02-24 14:25:29 Re: SQL solution for my JDBC timezone issue

Browse pgsql-jdbc by date

  From Date Subject
Next Message Adrian Klaver 2015-02-24 15:29:46 Re: SQL solution for my JDBC timezone issue
Previous Message George Woodring 2015-02-24 14:25:29 Re: SQL solution for my JDBC timezone issue