What is the "best practices" way of formatting PostgreSQL timestamps?
I tried util_AnsiDatetoPrettydate but it drops the time field.
I tried dt_ansi_to_pretty but I get an error like this:
unable to convert date-time string "2002-04-25 11:22:00+08" while executing clock scan $ansi_date (dt_ansi_to_pretty line 6) ...
I worked around this by splitting the PostgreSQL date into a date component and a time component:
select cast(start_timestamp as date) as start_date, cast(start_timestamp as time)...
Then I use
set start_time_str [dt_ansi_to_pretty $start_date] append start_time_str " $start_time"
Is this a bug in dt_ansi_to_pretty? Or is there something wrong with the way I get my date from PostgreSQL?