LoginSignup
3

More than 5 years have passed since last update.

posted at

updated at

CoreOSのtimezone設定

初期状態はUTC
# date
Thu Dec 26 15:16:18 UTC 2013
Asia/Tokyoにする。
# mkdir /var/lib/timezone/         
# ln -s /usr/share/zoneinfo/Asia/Tokyo /var/lib/timezone/localtime
# date
Fri Dec 27 00:17:10 JST 2013

と思ったが、最新版(296)だとこの方法は使えなかったので以下。

$ echo "TZ='Asia/Tokyo'; export TZ" > ~/.profile
$ source ~/.profile

それでもダメな環境の場合

export TZ=JST-9
date

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
3