How can I output postgresql dates with ISO 8601-compliant timezones?
e.g. I have the value
2006-11-10 07:35:30+01
and I need it in this format:
2006-11-10T07:35+01
I could do that easily enough with string manipulation, but the standard date formatting functions for
to_char(<my date>, 'YYYY-MM-DDThh:mmTD')
would give me this:
2006-11-10T07:11CET
instead of this:
2006-11-10T07:11+02
Is there a way to get the timzone as an offset instead of as an abbreviation?