Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tzdata package for timezones #170

Merged
merged 1 commit into from
Jan 16, 2024
Merged

Add tzdata package for timezones #170

merged 1 commit into from
Jan 16, 2024

Conversation

Jancis
Copy link
Member

@Jancis Jancis commented Jan 11, 2024

This allows setting timezone via TZ environment variable but will require chart change.

php:
  env:
    TZ: Europe/Helsinki

Alternative option is pre-setting tz via /etc/localtime and /etc/timezone, but overriding won't be as straightforward.

RUN apk add tzdata
ENV TZ=Europe/Helsinki
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

@Rade333 Rade333 merged commit 74bcdb4 into master Jan 16, 2024
17 checks passed
@Rade333 Rade333 deleted the feature/tzdata branch January 16, 2024 11:07
@Rade333 Rade333 changed the title tzdata package Add tzdata package Jan 16, 2024
@Rade333 Rade333 changed the title Add tzdata package Add tzdata package for timezones Jan 16, 2024
Rade333 added a commit that referenced this pull request Jan 16, 2024
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.

2 participants