The Python time.strftime docs say:
When used with the strptime() function, the
%pdirective only
affects the output hour field if the%Idirective is used to parse
the hour.
Sure enough, changing your %H to %I makes it work.
The Python time.strftime docs say:
When used with the strptime() function, the
%pdirective only
affects the output hour field if the%Idirective is used to parse
the hour.
Sure enough, changing your %H to %I makes it work.