Re: TIMEZONE Problem

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Ron St-Pierre <rstpierre(at)syscor(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: TIMEZONE Problem
Date: 2003-05-02 15:53:18
Message-ID: 20030502155318.GA24597@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, May 01, 2003 at 13:28:52 -0700,
Ron St-Pierre <rstpierre(at)syscor(dot)com> wrote:
>
> In both cases the time is returned as UTC. Is there any way I can
> configure the databases to return local times/dates? These apps are
> already built and I want to avoid changing all of the coded queries. Can
> anyone help?

You can use AT TIME ZONE to get output from timestamptz in a particular
timezone. As long as your app can adjust the query based on the timezone
the end user wants, you should be able to do what you want.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Johnson, Shaunn 2003-05-02 16:15:13 select first occurrence of a table
Previous Message Steve Crawford 2003-05-02 15:19:21 Re: translate function