Subject: | format_datetime() 'round midnight |
If you pass the format_datetime method a DateTime object whose timestamp is set explicitly as "00:00:00", the method will not print a timestamp or an offset.
The code appears to be doing a simple boolean test on h/m/s, each if which (rightly) return '0'.
I'm not sure if this is a bug but it is ambiguous and should at least be documented.