Skip to content

タイムゾーンが UTC なので、最新話更新日が +9 時間ずれてしまう#1

Open
k0sukey wants to merge 1 commit intowhiteleaf7:masterfrom
k0sukey:feature/add-time-zone
Open

タイムゾーンが UTC なので、最新話更新日が +9 時間ずれてしまう#1
k0sukey wants to merge 1 commit intowhiteleaf7:masterfrom
k0sukey:feature/add-time-zone

Conversation

@k0sukey
Copy link

@k0sukey k0sukey commented Jul 22, 2020

小説家になろうの目次にある投稿日がタイムゾーンを持っていないため、そのまま更新してしまうと 9 時間進んでしまうようでした。

PC のタイムゾーンを変更して、ブラウザで目次を見に行きましたが時間はそのままだったので、たぶん Asia/Tokyo に固定して大丈夫かと思います。


RUN set -x \
# install tzdata
&& apk --no-cache add tzdata \
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tzdata を入れてタイムゾーンを変更できるようにしています。

app:
build: .
environment:
TZ: Asia/Tokyo
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Asia/Tokyo にしています。

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.

1 participant