Dan Horne wrote: >Unfortunately, Datetime's %Z of UTC matches neither of these. My workaround >is to actually hardcode the time zone name in the format string, but this >strikes me a s being a bit of a hack. Is there a better approach.
No, hardcoding it is totally appropriate in this case. %Z is meant for human use, and should never be used in machine-readable output. -zefram