Open paulocoutinhox opened 2 years ago
I need install package tzdata to make it work.
It is really necessary?
Hi @paulocoutinhox, what version of django are you running and on what platform?
It looks like django 4.X on windows should be installing tzdata by default. So I'm guessing you're on django 3.X on windows? Is that correct? Thanks.
Im using latest django 4 on macos.
Ok thanks
It looks like the timezone which is causing the problem is Pacific/Kanton
was added to the IANA database in september 2021. So it makes sense that the system default list of timezones doesn't include it yet.
I'm hesitant to add a direct dependency on tzdata to this package because both python stdlib (via zoneinfo) and django choose not to do so. Let me mull it over. Perhaps we should push for django to remove the sys_platform == 'win32'
part of this line.
I just encountered the same issue with python 3.9 on debian bullseyse with django 3.x. I now manually fixed pytz==2021.1 for my setup to get around this.
Hi,
Im getting this error:
Thanks.