Networking and Internet #linux 1 min

Problems with the /etc/localtime file (zic)

Translation of the original in Catalan. Read it in: CatalàCastellano

Taking a break from the Sunday swim after spending Saturday working at the office until 0:30 I have decided to write one of the technical articles I have pending. It is about a silly thing that was happening to me on one of the linux machines I have installed. The issue is that when I asked the system for the time with date I got the following:

Fri Nov 25 09:50:19 Local time zone must be set--see zic manual page 2005

Basically the problem is in the localtime file, the solution in cookbook form:

zic -d /usr/share/zoneinfo/Europe
zic -l /usr/share/zoneinfo/Europe/YOUR_ZONE

The first command tells us the directory where the localtime files are and the second command links the generic file with our local file that is in /etc/localtime.

After doing this it already comes out in the conventional form. One of those silly things that can make us lose hours and hours of googling.

1 comment

Comments from the old blog, as they were written. Comments are closed.

  1. Carita