You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Could not find file '/usr/share/zoneinfo/Europe/Kiev'. #6072
Once we migrated from jammy:8.0.10-amd64 to runtime:9.0.0-noble-chiseled-extra-amd64,
I can see following exception in our production logs: Could not find file '/usr/share/zoneinfo/Europe/Kiev'.
This is due to a difference in the tzdata package versions between Ubuntu 22.04 (jammy) and Ubuntu 24.04 (noble).
In Ubuntu 22.04, the path usr/share/zoneinfo/Europe/Kiev was a symbolic link to the path usr/share/zoneinfo/Europe/Kyiv. In Ubuntu 24.04, that symbolic link was removed, leaving only the usr/share/zoneinfo/Europe/Kyiv path.
Pinging @dotnet/area-system-globalization for input on why TimeZoneInfo isn't accounting for this.
I am wondering if we should create breaking change issues, per OS version, and add to them over time. This is similar to the TLS 1.x change we saw earlier. We haven't come up with a good model on how to record these. Recording them in docs doesn't seem right to me. Docs should be dedicated to .NET product breaks. The goal is to make the full set of breaks discoverable.
I talked to @tarekgh. If I understood correctly, the globalization APIs look for the constructed path from the given IANA name. There is no auto-conversion. That's the role the backwards compat package/path plays, which makes sense.
This is an ecosystem change. App code will need to be updated to the new names (or always install the compat package).
To add, when doing TimeZoneInfo.FindSystemTimeZoneById("FLE Standard Time") , the .NET uses ICU to convert Windows timezone Id to IANA id which convert it to Europe/Kiev. You may file a ticket to ICU to let it do the mapping to the updated name Europe/Kyiv instead.
[Triage] Closing this as not planned since it's a change in the ICU package and not an issue with .NET. One workaround is to install the tzdata-legacy package from Ubuntu. The other workaround is to use "Europe/Kyiv" as the Time Zone ID directly.
As I stated before we depend on the ICU API to do the mapping. The data you are pointing at is embedded inside ICU. If anything, it needs to change it will be in ICU. The .NET is not carrying any data for time zones.
You can file an issue to ask us to consider adding the legacy support in the extra image. It's a worthwhile conversation. I'd prefer to not continue using this issue for that since the original topic has been resolved.
Activity
mthalman commentedon Nov 22, 2024
This is due to a difference in the
tzdatapackage versions between Ubuntu 22.04 (jammy) and Ubuntu 24.04 (noble).In Ubuntu 22.04, the path
usr/share/zoneinfo/Europe/Kievwas a symbolic link to the pathusr/share/zoneinfo/Europe/Kyiv. In Ubuntu 24.04, that symbolic link was removed, leaving only theusr/share/zoneinfo/Europe/Kyivpath.Pinging @dotnet/area-system-globalization for input on why
TimeZoneInfoisn't accounting for this.richlander commentedon Nov 22, 2024
Also see: https://discourse.ubuntu.com/t/ubuntu-24-04-lts-noble-numbat-release-notes/39890#p-99950-tzdata-package-split
richlander commentedon Nov 22, 2024
I am wondering if we should create breaking change issues, per OS version, and add to them over time. This is similar to the TLS 1.x change we saw earlier. We haven't come up with a good model on how to record these. Recording them in docs doesn't seem right to me. Docs should be dedicated to .NET product breaks. The goal is to make the full set of breaks discoverable.
@gewarren
mthalman commentedon Nov 22, 2024
So this can be resolved by installing
tzdata-legacy. I tried that and confirmed it does create theusr/share/zoneinfo/Europe/Kievpath.But ideally, whatever code is looking for that path would be updated to use
usr/share/zoneinfo/Europe/Kyivinstead.lbussell commentedon Nov 22, 2024
This is interesting. I tested this out apparently at the same time as @mthalman.
tzdata-legacydoes work. Here is my Dockerfile... https://gist.github.com/lbussell/0146020f97fb5ea8249534bc92bcd69brichlander commentedon Nov 22, 2024
I talked to @tarekgh. If I understood correctly, the globalization APIs look for the constructed path from the given IANA name. There is no auto-conversion. That's the role the backwards compat package/path plays, which makes sense.
This is an ecosystem change. App code will need to be updated to the new names (or always install the compat package).
tarekgh commentedon Nov 24, 2024
To add, when doing
TimeZoneInfo.FindSystemTimeZoneById("FLE Standard Time"), the .NET uses ICU to convert Windows timezone Id to IANA id which convert it to Europe/Kiev. You may file a ticket to ICU to let it do the mapping to the updated nameEurope/Kyivinstead.lbussell commentedon Nov 25, 2024
[Triage] Closing this as not planned since it's a change in the ICU package and not an issue with .NET. One workaround is to install the
tzdata-legacypackage from Ubuntu. The other workaround is to use"Europe/Kyiv"as the Time Zone ID directly.mthalman commentedon Nov 25, 2024
@tarekgh - I see this mapping: https://github.com/unicode-org/icu/blob/2ba362fa3b7cb8b4f4c35b016ec1c490e590b86a/icu4c/source/data/misc/timezoneTypes.txt#L48. Should that data be used in some way to handle this from the .NET side?
tarekgh commentedon Nov 25, 2024
@mthalman No.
As I stated before we depend on the ICU API to do the mapping. The data you are pointing at is embedded inside ICU. If anything, it needs to change it will be in ICU. The .NET is not carrying any data for time zones.
tarekgh commentedon Nov 25, 2024
Linking some related issue talking about the mapping between Windows and ICU names.
tc39/proposal-canonical-tz#16
TrayanZapryanov commentedon Nov 26, 2024
@lbussell Just a newbie question:
Do you have a sample how to install tzdata-legacy to chiseled image?
At the moment we use this docker file
FROM mcr.microsoft.com/dotnet/runtime:9.0.0-noble-chiseled-extra-amd64 AS base
WORKDIR /publish
COPY ./ContainerApp .
ENTRYPOINT ["dotnet", "XXX.dll"]
richlander commentedon Nov 26, 2024
Here's a workaround: rockcrafters/dotnet#21 (comment).
You can file an issue to ask us to consider adding the legacy support in the
extraimage. It's a worthwhile conversation. I'd prefer to not continue using this issue for that since the original topic has been resolved.