Ubuntu:Merubah Time Zone: Difference between revisions
No edit summary |
|||
| (6 intermediate revisions by the same user not shown) | |||
| Line 10: | Line 10: | ||
*'''Output''' | *'''Output''' | ||
Local time: Wed | Local time: Wed 2022-01-12 20:56:22 CET | ||
Universal time: Wed | Universal time: Wed 2022-01-12 19:56:22 UTC | ||
RTC time: Wed | RTC time: Wed 2022-01-12 19:56:23 | ||
Time zone: | 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 31: | Line 33: | ||
*Output | *Output | ||
UTC | UTC | ||
==Mengubah Zona Waktu Menggunakan Perintah <code>timedatectl</code>== | |||
Sebelum mengubah zona waktu, Anda harus mencari tahu nama panjang untuk zona waktu yang ingin Anda gunakan. Zona waktu menggunakan format <code>Wilayah/Kota</code>. | |||
Untuk membuat daftar semua zona waktu yang tersedia, Anda dapat membuat daftar file di direktori <code>/usr/share/zoneinfo</code> atau menjalankan perintah <code>timedatectl</code> dengan opsi daftar-zona waktu: | |||
timedatectl list-timezones | |||
*'''Output''' | |||
Africa/Abidjan | |||
Africa/Accra | |||
Africa/Addis_Ababa | |||
Africa/Algiers | |||
Africa/Asmara | |||
Africa/Asmera | |||
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]] | |||