0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Ubuntu 20.04.3のタイムゾーン変更方法

Posted at

目次

  • 実行環境
  • やりたいこと
  • 現在のタイムゾーン確認
  • タイムゾーンの変更
  • 反映状況確認

実行環境

OS:Ubuntu-20.04.3

やりたいこと

UbuntuのタイムゾーンをUTCからJSTへ変更する

現在のタイムゾーン確認

[コマンド]
date 

[結果]
Sun 05 Jun 2022 12:17:10 AM UTC

※下記コマンドでも確認できるみたい

[コマンド]
timedatectl

[結果]
               Local time: Sun 2022-06-05 00:18:42:UTC
           Universal time: Sun 2022-06-05 00:18:42:UTC
                 RTC time: Sun 2022-06-05 00:18:42
                Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

タイムゾーンの変更

[コマンド]
sudo timedatectl set-timezone Asia/Tokyo

即時反映されます。

反映状況確認

[コマンド]
date 

[結果]
Sun 05 Jun 2022 09:19:42 AM JST

Rebootしても問題なし。

0
0
0

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
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?