[{"data":1,"prerenderedAt":72},["ShallowReactive",2],{"/2026/02/02-timezoneinfo-and-alpine":3},{"id":4,"title":5,"body":6,"date":63,"description":59,"extension":64,"meta":65,"navigation":66,"path":67,"robots":68,"seo":69,"stem":70,"__hash__":71},"posts/2026/02/02 TimeZoneInfo-and-Alpine.md","02 TimeZoneInfo And Alpine",{"type":7,"value":8,"toc":60},"minimark",[9,18,36,39,42,44,47],[10,11,13],"post-title",{":date":12},"date",[14,15,17],"h1",{"id":16},"timezoneinfo-and-alpine","TimeZoneInfo and Alpine",[19,20,21,22,30,31,35],"p",{},"I was helping a co-worker fixing a ",[23,24,29],"code",{"className":25},[26,27,28],"bg-gray-200","p-2","rounded","TimeZoneNotFoundException"," error. The error was actually on ",[23,32,34],{"className":33},[26,27,28],"TimeZoneInfo.FindSystemTimeZoneById()",". Per my experience, it was based on timezone installed in the machine. I was told that using Windows or Linux Id both throw an exception.",[37,38],"br",{},[19,40,41],{},"I found out that the application Docker base image is based on Alpine Linux. A quick search reveals that Alpine Linux doesn't have tzdata package installed.",[37,43],{},[19,45,46],{},"Added the following line in the Dockerfile fixed the error.",[48,49,50],"code-block",{},[51,52,57],"pre",{"className":53,"code":55,"language":56},[54],"language-text","RUN apk add --no-cache tzdata\n","text",[23,58,55],{"__ignoreMap":59},"",{"title":59,"searchDepth":61,"depth":61,"links":62},2,[],"2026-02-02T00:00:00.000Z","md",{},true,"/2026/02/02-timezoneinfo-and-alpine",null,{"title":5,"description":59},"2026/02/02 TimeZoneInfo-and-Alpine","pL4Hxt_6N-DvkgNyAuC3qzGBCoCCc61JK0bWi7J5PvE",1785167451591]