ibind icon indicating copy to clipboard operation
ibind copied to clipboard

Fix UTC usage

Open demircancelebi opened this issue 1 year ago • 1 comments

Hello @Voyz Thank you for ibind / ibeam. I was trying to use your library and calling ibind_logs_initialize() failed for me with:

    now = datetime.datetime.now(datetime.UTC)
AttributeError: module 'datetime' has no attribute 'UTC'

I thought this might fix it so I applied the fix: https://stackoverflow.com/a/13624191

It fixed the issue for me but I am not used to committing to Python repos so you can guide me on whether this needs further work.

Best,

demircancelebi avatar Aug 14 '24 12:08 demircancelebi

Hey @demircancelebi thanks for pointing this out and for your suggested fix 👍

I'm trying to debug this, what Python version are you running this on?

Voyz avatar Aug 21 '24 13:08 Voyz

@demircancelebi just wanted to bring this PR back to your attention so that we could merge it

Voyz avatar Oct 30 '24 12:10 Voyz

Fixed, I think it can be merged now

demircancelebi avatar Oct 31 '24 07:10 demircancelebi

Many thanks for adjusting it, and for the contribution 👍

Voyz avatar Oct 31 '24 12:10 Voyz