Closed tbabej closed 9 years ago
I guess that should be fixable. But quick question: Why do you need to copy it?
Oh, I hinted that in the description. Localized datetime is a attribute of a object which is being copied. The above is just a minimal example.
In fact, this is not trivially fixable, because of how pytz works.
However, systemd distributions will now no longer return the "local" zone, so it should be less of a problem.
I feared as much - could not find a trivial solution myself before reporting. I agree it shouldn't make much trouble as 'local' timezone should be encountered much less frequently.
Thanks for taking the time to investigate!
If you try to copy the 'local' zone object, or any object that contains it, you get the following failure: