Re: Problems with timestamp with time zone and old dates? - Mailing list pgsql-general

From Scott Marlowe
Subject Re: Problems with timestamp with time zone and old dates?
Date
Msg-id CAOR=d=1afz-vjGnWMB6Fc3M-sFZhZFj-QPw9LhJna5Fir5XXPg@mail.gmail.com
Whole thread Raw
In response to Re: Problems with timestamp with time zone and old dates?  (Scott Marlowe <scott.marlowe@gmail.com>)
Responses Re: Problems with timestamp with time zone and old dates?
List pgsql-general
On Tue, Aug 21, 2012 at 10:12 PM, Scott Marlowe <scott.marlowe@gmail.com> wrote:
> On Tue, Aug 21, 2012 at 10:08 PM, Scott Marlowe <scott.marlowe@gmail.com> wrote:
>> On Tue, Aug 21, 2012 at 3:29 PM, Michael Clark <codingninja@gmail.com> wrote:
>>> For example, if I insert like so:
>>> INSERT INTO sometable (startdate) values ('1750-08-21 21:17:00+00:00');
>>
>> What's the reason for you inserting with an offest instead of letting
>> the client timezone set it for you?  Just wondering.
>
> Note that if you just want to get out what you're putting in (GMT) you
> can do this:
>
> select startdate at time zone 'GMT' from sometable ;
>       timezone
> ---------------------
>  1750-08-21 21:17:00

Or you could just use plain timezones, not timezones with timestamp.


pgsql-general by date:

Previous
From: Wells Oliver
Date:
Subject:
Next
From: Wells Oliver
Date:
Subject: Performance implications of numeric?