Difference between revisions of "How to change the Timezone on Debian 9 Linux"

From steamWiki
Jump to: navigation, search
 
Line 1: Line 1:
 
Changing the time zone on a debian based system is fairly simple.
 
Changing the time zone on a debian based system is fairly simple.
  
To check your current timezone run
+
#To check your current timezone run <pre>user@server:~# date</pre> which should return something like <pre>Mon May 13 00:58:26 UTC 2019</pre> showing that the current timezone is set to ''UTC''
<nowiki>user@server:~# date</nowiki>
+
#To change the system timezone run <pre>user@server:~# sudo timedatectl set-timezone America/New_York</pre>
which should return something like
+
#*change ''America/New_York'' to a location relevant to your physical location using the "TZ database name" in this [https://en.wikipedia.org/wiki/List_of_tz_database_time_zones table]
<nowiki>Mon May 13 00:58:26 UTC 2019</nowiki>
+
#To check your new current timezone run <pre>user@server:~# date</pre> which should return something like <pre>Sun May 12 21:00:13 EDT 2019</pre>
showing that the current timezone is set to ''UTC''
 
 
 
To change the system timezone run
 
<nowiki>user@server:~# sudo timedatectl set-timezone America/New_York</nowiki>
 
*change ''America/New_York'' to a location relevant to your physical location using the "TZ database name" in this [https://en.wikipedia.org/wiki/List_of_tz_database_time_zones table]
 
 
 
To check your new current timezone run
 
<nowiki>user@server:~# date</nowiki>
 
which should return something like
 
<nowiki>Sun May 12 21:00:13 EDT 2019</nowiki>
 
 
showing that the current timezone is now set to ''EDT''
 
showing that the current timezone is now set to ''EDT''
  
 
[[Category: Linux]]
 
[[Category: Linux]]

Latest revision as of 11:21, 9 July 2019

Changing the time zone on a debian based system is fairly simple.

  1. To check your current timezone run
    user@server:~# date
    which should return something like
    Mon May 13 00:58:26 UTC 2019
    showing that the current timezone is set to UTC
  2. To change the system timezone run
    user@server:~# sudo timedatectl set-timezone America/New_York
    • change America/New_York to a location relevant to your physical location using the "TZ database name" in this table
  3. To check your new current timezone run
    user@server:~# date
    which should return something like
    Sun May 12 21:00:13 EDT 2019

showing that the current timezone is now set to EDT