timezone datetime issue

From: Glenn Pierce <glennpierce(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: timezone datetime issue
Date: 2014-04-16 10:56:21
Message-ID: CAM5ipV_Z=S5RtCqqzrH+5WMxEWxju5tGo1NhYsHB4gRvcT154Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi I have an issue with adjusting a timestamp.

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 ?

Thanks

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Glenn Pierce 2014-04-16 11:19:58 Re: timezone datetime issue
Previous Message Tony Theodore 2014-04-16 10:40:00 Re: Heartbleed Impact