I'm having a (django) db that wants datetime objects, and I'd like to feed it data from git commits.
Now git commits have that "not really a timezone" offset thingie.
What's the correct way to get a python datetime? Any luck with getting timezones right?
I'm thinking about
datetime.datetime.utcfromtimestamp(commit.commit_time)
I'm using dulwich right now, but that seems to be a side note.