mirror of
https://github.com/Finb/bark-server.git
synced 2026-04-27 22:55:51 +03:00
[GH-ISSUE #120] feat: allow setting to custom timezone #75
Labels
No labels
enhancement
in progress
need test
pull-request
v2
v2
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bark-server#75
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @harryzcy on GitHub (Mar 18, 2022).
Original GitHub issue: https://github.com/Finb/bark-server/issues/120
Golang 支持使用
TZ环境变量更改时间 (source),如TZ=Asia/Shanghai目前
Dockerfile中直接把/etc/localtime改成了/usr/share/zoneinfo/Asia/Shanghai。但时区的设置在运行时用环境变量更好一些,只需要把 host 的 zoneinfo 文件映射进去。e.g.
所以我觉得
Dockerfile中可以不改时区,在REAME.md中进行说明。@citizen233 commented on GitHub (Jun 15, 2022):
@harryzcy 我优化了,你提出的这个问题