Probably an old bug, but here you go anyway... - Mailing list pgsql-general

From blueberry@linuxmail.org (Blue Berry)
Subject Probably an old bug, but here you go anyway...
Date
Msg-id ca1120dd.0108141238.19f3a81d@posting.google.com
Whole thread Raw
List pgsql-general
Hi, I'm working with 7.0.2, so this might be an old bug. I saw some
other bugs mentioned in this newsgroup involving to_char were said to
be resolved for 7.1.0, but I just thought I'd volunteer it anyway...

db1=# select flastpostdate, to_char(flastpostdate, 'hh:mi:ss mon-dd-yy
am') from tThreads order by flastpostdate desc limit 1;

     flastpostdate      |        to_char
------------------------+-----------------------
 2001-08-14 13:22:02-07 | 01:22:02 aug-14-01 am
(1 row)

It displays results that should be pm as am. Seems to work for other
hours, though...

pgsql-general by date:

Previous
From: "Cefull Lo"
Date:
Subject: time interval question
Next
From: "Hicnar"
Date:
Subject: A libpq++ question.