This recreates the issue:
pytz.timezone('utc').utcoffset(datetime.datetime.utcnow(), is_dst=False)
I believe the only reason for the UTC class to have even have a utcoffset method is to match the signature of other timezone classes, so it seems reasonable that it should accept an is_dst kwarg.
This recreates the issue: pytz.timezone('utc').utcoffset(datetime.datetime.utcnow(), is_dst=False)
I believe the only reason for the UTC class to have even have a utcoffset method is to match the signature of other timezone classes, so it seems reasonable that it should accept an is_dst kwarg.