newvem / pytz

MIT License
60 stars 12 forks source link

utc.utcoffset() does not accept is_dst kwarg #5

Open garhiggins opened 7 years ago

garhiggins commented 7 years ago

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.