[sdnog] Impact of new timezone in Sudan

Philip Paeps philip at trouble.is
Tue Oct 31 18:18:40 SAST 2017


On 2017-10-31 15:13:46 (+0100), Manhal Mohammed wrote:
> This will be a great help for admins who run freeBSD also ISPs in 
> sudan " most of their servers run freeBSD as I know"
> Hope this discussion find them on time ^_^

Happy to help. :) Glad they like FreeBSD. :)

> "I will install a FreeBSD on a VM just to try it out "
> Can we do the same for Linux?

Linux is a mess. Every distribution is different and I have no idea 
which ones have updated their timezone databases and whether they push 
updates to supported releases.

If in doubt, you can probably update your timezone manually. Note, I 
have not tested this on any actual Linux system:

     % wget 
https://www.iana.org/time-zones/repository/releases/tzdata2017c.tar.gz
     % mkdir tzdata2017c && tar -C tzdata2017c -zxvf tzdata2017c.tar.gz
     % zic -d zoneinfo tzdata2017c/africa
     # su
     [root password]
     # cp zoneinfo/Africa/Khartoum /usr/share/zoneinfo/Africa/Khartoum

Some Linux systems also install a copy of the timezone data to 
/etc/localtime instead of a symlink. Make sure you actually use the new 
timezone data:

     # ln -sf /usr/share/zoneinfo/Africa/Khartoum /etc/localtime

Check that your system is correct:

     # zdump -v Africa/Khartoum | grep 2017
     Africa/Khartoum  Tue Oct 31 20:59:59 2017 UTC = Tue Oct 31 23:59:59 
2017 EAT isdst=0 gmtoff=10800
     Africa/Khartoum  Tue Oct 31 21:00:00 2017 UTC = Tue Oct 31 23:00:00 
2017 CAT isdst=0 gmtoff=7200

Note that if you make manual changes, some Linux systems might get 
cranky when you try to update it later. Or if might silently replace 
your corrected timezone data with outdated timezone data next time you 
update.

Good luck. :)

Philip

-- 
Philip Paeps
Senior Reality Engineer
Ministry of Information
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sdnog.sd/pipermail/sdnog/attachments/20171031/1412798d/attachment.html>


More information about the sdnog mailing list