Ubuntu:Merubah Time Zone: Difference between revisions

 
(5 intermediate revisions by the same user not shown)
Line 10: Line 10:


*'''Output'''
*'''Output'''
                 Local time: Wed 2020-05-06 19:33:20 UTC
                 Local time: Wed 2022-01-12 20:56:22 CET
             Universal time: Wed 2020-05-06 19:33:20 UTC
             Universal time: Wed 2022-01-12 19:56:22 UTC
                   RTC time: Wed 2020-05-06 19:33:22    
                   RTC time: Wed 2022-01-12 19:56:23    
                 Time zone: UTC (UTC, +0000)          
                 Time zone: Europe/Berlin (CET, +0100)  
  System clock synchronized: yes                        
  System clock synchronized: yes                      
               NTP service: active                    
               NTP service: active                    
           RTC in local TZ: no  
           RTC in local TZ: no                          
 
[[File:Merubah time zone 1.png|thumb|center|400px]]


Zona waktu sistem dikonfigurasi dengan menghubungkan <code>/etc/localtime</code> ke pengidentifikasi zona waktu biner di direktori /<code>usr/share/zoneinfo</code>.
Zona waktu sistem dikonfigurasi dengan menghubungkan <code>/etc/localtime</code> ke pengidentifikasi zona waktu biner di direktori /<code>usr/share/zoneinfo</code>.
Line 39: Line 41:


*'''Output'''
*'''Output'''
  ...
  Africa/Abidjan
  America/Montevideo
Africa/Accra
  America/Nassau
Africa/Addis_Ababa
  America/New_York
Africa/Algiers
  America/Nipigon
Africa/Asmara
  America/Nome
Africa/Asmera
  America/Noronha
Africa/Bamako
  ...
Africa/Bangui
Africa/Banjul
  Africa/Bissau
  Africa/Blantyre
  Africa/Brazzaville
  ....
 
Setelah Anda mengidentifikasi zona waktu mana yang akurat untuk lokasi Anda, jalankan perintah berikut sebagai pengguna <code>sudo</code>:
sudo timedatectl set-timezone your_time_zone
 
'''Contoh'''
  sudo timedatectl set-timezone Asia/Jakarta
 
Cek perubahan
  timedatectl
 
*'''Output'''
                Local time: Thu 2022-01-13 02:57:19 WIB
            Universal time: Wed 2022-01-12 19:57:19 UTC
                  RTC time: Wed 2022-01-12 19:57:20   
                Time zone: Asia/Jakarta (WIB, +0700) 
  System clock synchronized: yes                       
              NTP service: active                   
          RTC in local TZ: no
 
[[File:Merubah time zone 2.png|thumb|center|400px]]
 
==Source==
*[https://linuxize.com/post/how-to-set-or-change-timezone-on-ubuntu-20-04/ linuxize.com]
 
[[Category:Tutorial]]
[[Category:Ubuntu]]