Difference between revisions of "Timezone"

From Teknologisk videncenter
Jump to: navigation, search
m (New page: Setting timezone =FreeBSD= <pre> cp /usr/share/zoneinfo/Europe/Copenhagen /etc/localtime </pre>)
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
Setting timezone
 
Setting timezone
 
+
=Ubuntu=
 +
{{:timezone/Ubuntu}}
 
=FreeBSD=
 
=FreeBSD=
<pre>
+
{{:timezone/FreeBSD}}
cp /usr/share/zoneinfo/Europe/Copenhagen /etc/localtime
 
</pre>
 

Latest revision as of 08:54, 30 July 2023

Setting timezone

Ubuntu

See datetime settings:

$ timedatectl
               Local time: Sun 2023-07-30 07:56:25 UTC
           Universal time: Sun 2023-07-30 07:56:25 UTC
                 RTC time: Sun 2023-07-30 07:56:26
                Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

Setting local timezone. See /usr/share/zoneinfo directory for paths to zoneinfo files.

$ sudo timedatectl set-timezone Europe/Copenhagen
$ timedatectl
               Local time: Sun 2023-07-30 09:58:31 CEST
           Universal time: Sun 2023-07-30 07:58:31 UTC
                 RTC time: Sun 2023-07-30 07:58:32
                Time zone: Europe/Copenhagen (CEST, +0200)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

Links

FreeBSD

cp /usr/share/zoneinfo/Europe/Copenhagen /etc/localtime