4 ms·
It's a bit unfair to complain that pytz doesn't use the "standard" interface, when that standard interface didn't exist when it was created. The necessary call
by mark-r 3y ago
It's a bit unfair to complain that pytz doesn't use the "standard" interface, when that standard interface didn't exist when it was created. The necessary calls for syncing the time zone with the date on datetime creation were a relatively recent addition.
- spott 3y agoI don't think it is unfair. If you are looking to solve a timezone problem right now, then you care about what the standard interface is right now... not "when the library was created".
- mark-r 3y agoThe documentation is very clear on how to use it to solve your timezone problem. The trouble comes when people expect it to "just work" without understanding how it works.