Ask HN: Python Datetime Conversion

1 pointsposted 11 hours ago
by hamid_rostami

Item id: 41688529

2 Comments

saintamh

11 hours ago

I think it’s because you’re using %H whereas what you want is %I

hamid_rostami

11 hours ago

Well spotted, that fixes the issue, thanks!