tzlocal: [Pinned] ValueError: Timezone offset does not match system offset

You will get this error, if there is something wrong in your computers time zone configuration. Ask for help with figuring out what is wrong here.

Common reasons:

  • Your country’s time zone standard has recently changed, and the OS config has been updated, but you are running an old version of pytz.

  • You are running under some sort of “almost virtualized” OS, like Cygwin, and the timezone configuration in this Linux-like environment doesn’t match the Windows configuration.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 34 (17 by maintainers)

Most upvoted comments

Hi @bruno-curta, I’m from Brazil too, I had the same error, I could fix it using the $tzselect (https://www.cyberciti.biz/faq/linux-unix-set-tz-environment-variable/) to select the timezone.