Skip to content

build(docker): install tzdata so IANA server time zones resolve - #1238

Merged
sven-n merged 2 commits into
masterfrom
claude/pr995-docker-tzdata
Oct 18, 2026
Merged

sven-n merged 2 commits into
masterfrom
claude/pr995-docker-tzdata

Conversation

@sven-n

@sven-n sven-n commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

Split out of #995 (original commit by Diego Amatte, authorship kept).

Problem

The aspnet:10.0-alpine base image doesn't include /usr/share/zoneinfo. In the Docker image, Program.ResolveServerTimeZone therefore fails for IANA ids like Europe/Berlin or America/Argentina/Buenos_Aires, logs a warning and falls back to UTC. Event schedules (periodic tasks, Crywolf, Castle Siege, Imperial Guardian) then run on UTC instead of the configured server time zone.

Change

Install tzdata next to icu-libs in all Alpine images:

  • src/Startup/Dockerfile (all-in-one)
  • src/Dapr/AdminPanel.Host/Dockerfile, src/Dapr/CentralServer.Host/Dockerfile, src/Dapr/GameServer.Host/Dockerfile (distributed)

Note: in the distributed deployment, the time zone data is now available, but nothing applies SystemConfiguration.TimeZoneId yet. Only Startup/Program.cs resolves it and GameServerContainer assigns it to GameContext.ServerTimeZone. The Dapr game server host still runs on UTC. That needs a separate code change.

Testing

Not built or run in Docker; there was no Docker daemon in the environment where this was prepared. The change is just one more Alpine package, the approach Microsoft documents for time zones on Alpine.


Generated by Claude Code

The Alpine base image ships without /usr/share/zoneinfo, so .NET only knew UTC and
the server time zone setting rejected ids like America/Argentina/Buenos_Aires.

Split out of #995.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sven-n
sven-n merged commit 6369525 into master Oct 18, 2026
2 checks passed
@sven-n
sven-n deleted the claude/pr995-docker-tzdata branch October 18, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants