Update Ubuntu 17.04 timezone

Hello Again, 

Today i will document the change of the timezone on Ubuntu.

In the other “normal” distributions the steps for update the time zone are:

  • Check that the /usr/share/zoneinfo/America/Mexico_City file exist.
  • Check the value “ZONE” in the /etc/sysconfig/clock file.
  • In my case
    • If “ZONE<>”America/Mexico_City”” Edit the following file /etc/sysconfig/clock
    • ZONE=”America/Mexico_City”
  • and recreate the link (ln –sf /usr/share/zoneinfo/America/Mexico_City /etc/localtime)

But, with Ubuntu, doesn’t exist the /etc/sysconfig/clock file and the file /etc/localtime is managed by timedatectl, then:

to update you need perform these steps:

  • Check that the /usr/share/zoneinfo/America/Mexico_City file exist.
  • Check the value “ZONE” in the /etc/localtime

    [code language=”bash”]
    root@ap0th3os1s:/home/morfeokmg# cat /etc/timezone
    America/Mexico_City
    [/code]

  • If the timezone is not correct, update with (in my case Mexico_City):

    [code language=”bash”]
    root@ap0th3os1s:/home/morfeokmg# timedatectl set-timezone America/Mexico_City
    [/code]

  • Check the datetime in your system.

    [code language=”bash”]
    root@ap0th3os1s:/home/morfeokmg# date
    vie oct 27 14:48:32 CDT 2017
    [/code]

if you see, Ubuntu is one of the Linux distributions that change the “normal” behaviour of the system. I don’t like this, but anyway, when you don’t have time to your favorite distribution you had to pay a price.

;-(

 

Dejar un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *