Timezone: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
To set a Linux/Debian timezone.
To set a Linux/Debian timezone.
= Preferred Method =
<pre>
timedatectl set-timezone Australia/Brisbane
</pre>
= Alternatives =
<pre>
<pre>
cp /usr/share/zoneinfo/Australia/Brisbane /etc/localtime
cp /usr/share/zoneinfo/Australia/Brisbane /etc/localtime
</pre>
</pre>
or
 
or preferred
<pre>
<pre>
ln -sf /usr/share/zoneinfo/Australia/Brisbane /etc/localtime
ln -sf /usr/share/zoneinfo/Australia/Brisbane /etc/localtime
</pre>
</pre>
Alternatively for debian
<pre>
dpkg-reconfigure tzdata
</pre>


[[Category : Linux]]
[[Category : Linux]]

Latest revision as of 11:57, 18 August 2017

To set a Linux/Debian timezone.

Preferred Method

timedatectl set-timezone Australia/Brisbane

Alternatives

cp /usr/share/zoneinfo/Australia/Brisbane /etc/localtime

or preferred

ln -sf /usr/share/zoneinfo/Australia/Brisbane /etc/localtime

Alternatively for debian

dpkg-reconfigure tzdata