Open bcebere opened 1 year ago
Hi @bcebere
Glad to hear that you find sherlock
useful.
I can confirm this issue as I am able to reproduce this for a UTC+ timezone. Be back shortly with a fix.
Is there a plan for when this might be merged? This is blocking my use of the library entirely.
Hello,
Thank you for the awesome library.
I am encountering an issue with the
FileLock
when trying to use it in a timezone different than UTC.The
_expiry_time
call throws the exception:ValueError: year 10000 is out of range
when computing
datetime.datetime.max.astimezone(datetime.timezone.utc)
As far as I understand, internally,
datetime
does this:But this is a weird behavior in
datetime
. Anyway, is it possible to have a way to usesherlock
on timezones different than UTC(UTC + x)?I can work on this, if it looks like a valid problem. One possible fix is to use
Python 3.10.9 OS: LinuxMint 21.1