Skip to content

Make timezone customized#166

Open
PhantomMaa wants to merge 1 commit intomsgbyte:masterfrom
PhantomMaa:master
Open

Make timezone customized#166
PhantomMaa wants to merge 1 commit intomsgbyte:masterfrom
PhantomMaa:master

Conversation

@PhantomMaa
Copy link

Problem:

Currently, Docker images built on Alpine lack the timezone package: tzdata. Upon startup, they can only operate in UTC time and cannot be customized with user-specified timezones.

Solution:

  • Install tzdata during image build.
  • Default to the Shanghai timezone (TZ=Asia/Shanghai).
  • Allow users to customize other timezones via environment variables.

Signed-off-by: PhantomMaa <494078416@qq.com>
@moonrailgun
Copy link
Contributor

looks intersting.
but tianji is planing with receive visitor's timezone and return custom info with user's timezone content
and have been create a options in workspace config.

did you mind which problem did you wanna resolve?

Here is option setting.

image

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