casting timeofday() to timestamp boken under cygwin - Problem identified - Mailing list pgsql-bugs

From Tim McAuley
Subject casting timeofday() to timestamp boken under cygwin - Problem identified
Date
Msg-id 3F210A25.3080400@tcd.ie
Whole thread Raw
Responses Re: casting timeofday() to timestamp boken under cygwin - Problem identified  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
Hi there,

Regarding my last email. I have found the issue. Windows 2K is reporting
the timezine as GMTDT (GMT, Dublin time... I think) and I don't believe
Postgresql can understand this.

See the following code segments:

mcauleyt=# select timeofday();
               timeofday
---------------------------------------
 Fri Jul 25 10:38:13.056614 2003 GMTST
(1 row)

mcauleyt=# select substr(timeofday(), 1, 35);
               substr
-------------------------------------
 Fri Jul 25 10:38:16.952614 2003 GMT
(1 row)

mcauleyt=# select timeofday()::timestamp;
ERROR:  Bad timestamp external representation 'Fri Jul 25
10:38:51.410614 2003 GMTST'

mcauleyt=# select substr(timeofday(), 1, 35)::timestamp;
           substr
----------------------------
 2003-07-25 10:38:57.918614
(1 row)

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: PostgreSQL 7.3.3 with pgcrypto on FreeBSD 5.1
Next
From: Tim McAuley
Date:
Subject: casting timeofday to timestamp broken under cygwin