GithubHelp home page GithubHelp logo

Comments (7)

moshfrid avatar moshfrid commented on June 2, 2024 4

Having the same issue with pytz==2022.2.1 and tzdata==2022.2 for "Europe/Kyiv"

from django-timezone-field.

jeremystretch avatar jeremystretch commented on June 2, 2024 3

This seems to be resolved now with both of the following installed:

pytz==2022.2.1
tzdata==2022.2

I'd still like to merge #95 to avoid similar issues in the future.

from django-timezone-field.

rarenatoe avatar rarenatoe commented on June 2, 2024 2

Sorry about the bump, but this is blocking me on upgrading some dependency, I'd appreciate merging #95 too and see if it fixes it.

from django-timezone-field.

stub42 avatar stub42 commented on June 2, 2024

pytz 2022.2 includes a new Asia/Hanoi entry in pytz.common_timezones , but Python's zoneinfo (and backports.zoneinfo) do not have that zone in their zoneinfo database (yet) and raise the exception.

There is no way to guarantee that there will not be drift between pytz and zoneinfo in the future. A working fix would be to simply catch the exception and ignore it when building the list, and then confirm that the list has >0 elements in case the database is missing entirely for some reason.

from django-timezone-field.

macmichael01 avatar macmichael01 commented on June 2, 2024

For anyone running into this issue, as a quick fix, ensure that you have pytz==2022.1 installed instead of pytz==2022.2

from django-timezone-field.

twschiller avatar twschiller commented on June 2, 2024

This issue also impacts people who are using tzdata instead of pytz: python/tzdata#53

from django-timezone-field.

jgb avatar jgb commented on June 2, 2024

Hello, any news on this? Could we have a look at merging #95 which is probably the solution here...

from django-timezone-field.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.