Questions tagged [tzdata]

37 questions
1
vote
3 answers

American time zones like CT, give error: ZoneInfoNotFoundError: 'No time zone found with key CT'

Python 3.9 introduced the zoneinfo module: The zoneinfo module provides a concrete time zone implementation to support the IANA time zone database as originally specified in PEP 615. By default, zoneinfo uses the system’s time zone data if…
Flimm
  • 136,138
  • 45
  • 251
  • 267
1
vote
1 answer

how to use "tzdata" file with pyarrow.compute.assume_timezone

Im trying to use the method pyarrow.compute.assume_timezone but i get the error: pyarrow.lib.ArrowInvalid: Cannot locate timezone 'UTC': Unable to get Timezone database version from C:\Users\Nick\Downloads\tzdata\ I tried download the db from…
Devyl
  • 565
  • 3
  • 8
1
vote
1 answer

Docker tzdata install stuck in gitlab cicd

While trying to install tzdata into an ubuntu docker image the job would get stuck at this stage. Unpacking tzdata (2022a-0ubuntu0.18.04) ... Setting up tzdata (2022a-0ubuntu0.18.04) ... debconf: unable to initialize frontend: Dialog debconf:…
Drew
  • 46
  • 1
  • 4
1
vote
2 answers

In my "small" python exe GUI program the tcl folder has 820 files (mostly tzdata). Any chance of reducing this number?

As stated in the title:; I have a "small" python exe GUI program generated by pyinstaller which creates a tcl folder that has 820 files (mostly tzdata). Any chance of reducing this number? It takes a long time to copy the program because of all the…
Terje
  • 13
  • 6
1
vote
1 answer

C++ Time Library and Octave .oct files

I am trying to write an Octave C++ .oct function that uses the linasm-1.13 library but I cannot seem to get even basic loading of tzdata from /usr/share/zoneinfo/ to work. My simple test function so far is #include #include
babelproofreader
  • 530
  • 1
  • 6
  • 20
0
votes
0 answers

Is there any REST API where I can get IANA Timezone releases updates?

I have been searching for it, however I have only found a paid Microsoft one. I need to know when a new version is released and the only source of that information seems to be this non restful url that returns an html. Is there any endpoint/library…
Zucca
  • 561
  • 1
  • 7
  • 21
0
votes
1 answer

How to update time zone file tzdata on Android 8

Many countries don't go by daylight saving anymore such as Chile and Lebanon. How do I update the tzdata file in /system/usr/share/zoneinfo? I need to compile it using the NDK and replace any existing files related to time zone. I tried downloading…
0
votes
0 answers

Retrieve DST date and time for IANA tzdata in Phyton

I am looking for a python or java script to get the DST date and time for a specific IANA time zone and year. In the end it should look like something like this
Stephan
  • 1
  • 2
0
votes
0 answers

tzset() from time.h sets tzname[0] as CET for TZ=Europe/Lisbon

I/m using glibc 2.31, the standard time for Europe/Lisbon is WET. In a C program where I'm trying to change the timezone to Europe/Lisbon. First I'm setting the env variable TZ="Europe/Lisbon" then I call tzset() function. When I print tzname[0]…
0
votes
1 answer

How often timezone database is updated in EC2 Amazon Linux 2

I have a scheduling use case that deals with end user local time. I couldn’t find information on how EC2/Amazon Linux 2 updates its timezone database. (Most likely based on IANA one) Does Amazon Linux 2 guarantee that timezone (TZ) changes (ex:…
0
votes
1 answer

Getting TimeZone code from TZDATA in nodejs

I am creating logger.js to make some clean logs. However I'm struggling to get the time zone in the expected format. I have it format Continent/Zone from process.env.TZ(Unix TZDATA) but would like it in format 000x This is what I have so far: /** …
vaughngx4
  • 135
  • 1
  • 9
0
votes
2 answers

ZoneId Europe/Berlin NullPointerException

I wrote a DateUtil class that converts java.time.LocalDateTime to java.util.Date and backwards. When trying to get the system-Default TimeZone or a specific TimeZone (Europe/Berlin) I get an exception. I checked that the JVM TimeZone is correctly…
0
votes
1 answer

Usage of tzdata and tzdata-java rpm

As per Google, tzdata rpm controls the timezone applied at system level while tzdata-java controls the timezone for java oriented applications such as openJDK, JRE. My confusion is.. Why java applications do not use system level related data that is…
ANaik
  • 35
  • 5
0
votes
1 answer

Changing timezone in Asp.Net Core container

I am running my app in a container with the following base image: FROM mcr.microsoft.com/dotnet/core/aspnet:2.2-stretch-slim AS base When I publish the app, container timezone is Greenwich Mean Time and therefore my NLog entries in the database off…
nPcomp
  • 8,637
  • 2
  • 54
  • 49
0
votes
0 answers

ets.lookup is still returning old data for :tzdata_current_release, :release_version from 2019a tzdata file even though 2019b is released

I'm getting error messages on a bunch of installed Elixir servers because we are downloading the 2019b tzdata but the code to check the released version is still reporting 2019a released. What triggers the updates to…
Sinc
  • 553
  • 1
  • 8
  • 31