Search Postgresql Archives

Re: timezone datetime issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Glenn Pierce wrote:
> I have a table  like
> 
> CREATE TABLE sensor_values
> (
>       ts timestamp with time zone NOT NULL,
>       value double precision NOT NULL DEFAULT 'NaN'::real,
> )
> 
> It was intended that ts timestamps would be the time we wanted to store in UTC.
> Clients would adjust their times to UTC before entering into the database.
> 
> 
> Unfortunately some values have been added with BST times.
> The DB thinks  they are UTC times but are an hour out this time of year.
> 
> Is the a way to adjust those times ? Ie offset the summer times back an hour ?

The value stored in the database is always the UTC.
So in your case you just have the wrong dates in the database.
What about using UPDATE to change them?

Yours,
Laurenz Albe

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux