How can I use TZConvert in my Dockerfile for dotnet core app?
It seem like I am getting an error in my DOTNET .CORE APP: Exception of type ‘System.TimeZoneNotFoundException’ was thrown. when I try to get timezone Central Europe Standard Time.
Right now I am using the
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-bionic AS build-env
and
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-bionic AS runtime
Does anyone know how to fix this?
Unix uses TZ format: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
Choose one of those I suppose.
So I should use name like Europe/Oslo in GetTimeZone instead?
C# devs
null reference exceptions