|
From: Thorsten O. <ad...@th...> - 2018-08-05 17:38:30
|
Works as expected here (Europe/Berlin is my actual local timezone): $ echo $TZ $ rm -f /etc/localtime $ cp /usr/share/zoneinfo/Factory /etc/localtime $ date Sun Aug 5 17:21:39 Local time zone must be set--see zic manual page 2018 $ cp /usr/share/zoneinfo/Europe/London /etc/localtime $ date Sun Aug 5 18:22:12 BST 2018 $ cp /usr/share/zoneinfo/Europe/Berlin /etc/localtime $ date Sun Aug 5 19:22:23 CEST 2018 $ /sbin/tzinit -l Current date and time: Sat Aug 4 11:22:40 2018 Time zone in use: CEST East of Greenwich Mean Time: 2:00:00 Kernel clock mode: localtime Note that the date printed from the tzinit call is bogus. That is because you must not execute it at runtime, only once from mint.cnf. But everything else (timezone name, and GMT offset) should be correct. I also prefer to use --localtime, because that is what non-mint-aware programs will expect when calling Tgettime(). |