casting timeofday() to timestamp boken under cygwin - Problem identified

From: Tim McAuley <mcauleyt(at)tcd(dot)ie>
To: pgsql-bugs(at)postgresql(dot)org
Subject: casting timeofday() to timestamp boken under cygwin - Problem identified
Date: 2003-07-25 10:44:53
Message-ID: 3F210A25.3080400@tcd.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-general

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)

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message arulbhavani 2003-07-25 18:39:45 [sap-portals-admins] Re: SSO to Non-SAP Systems using SAP Login Tickets
Previous Message Tim McAuley 2003-07-25 10:20:08 casting timeofday to timestamp broken under cygwin

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Sullivan 2003-07-25 12:28:02 Re: Can I turn the case sensitive off
Previous Message Jean-Christophe ARNU (JX) 2003-07-25 09:23:29 plPython and restricted execution issues