|
From: David G. <dga...@gm...> - 2018-07-29 09:23:42
|
2018-07-28 13:01 GMT+02:00 Peter Slegg <p....@sc...>: > On Fri, 27 Jul 2018 10:01:10 , David Gálvez wrote: >> Hi Peter, >> >> 2018-03-26 15:32 GMT+02:00 Peter Slegg <p....@sc...>: >> > >> > Myself and others have reported timezone issues especially with >> > the change to summertime. >> > >> > >> > Android has a bug that means files sent over samba have their >> > timestamps set to the sysdate. So I use touch -t to reset the >> > times based on the filename. I have hacked up a perl script to >> > do this. >> > >> > >> > I do the mp4 files individually: >> > >> > touch -t 201712101030 /tmp/20171210_103049.mp4 >> > >> > but in Thing they are shown with a time of 1 hour ahead. >> > I am using BST (GMT +1) >> > >> > In this example the file is shown as 11:30 when I have stamped it 10:30 >> > >> > >> > >> > In bash the file time is correct: >> > >> > bash-4.3# ls -l /tmp/ >> > total 10460 >> > -rw-r--r-- 1 root root 10692187 Dec 10 10:30 20171210_103049.mp4 >> > >> > >> >> Is your hardware clock set to the localtime or UTC (GMT)? >> I guess is UTC but to be sure. >> >> How do you run tzinit in mint.cnf? Which option do you use? >> > > > In mint.cnf I have the original (very old) settings commented out and the > updated one that was suggested when I originally mentioned the issue > about 8-10 years ago. > > # Timezone (mandatory) > #~setenv TZ GMT-0BST,3.5.0,10.5.0 > setenv TZ GB > exec u:\sbin\tzinit -l > > > Somewhere, in the labyrinth of the start-up, ntpdate is called to set the clock. > I have read that ntpdate feeds your system with an UTC time, so you need to change the option for tzinit from "-l" to "-u". This explains why you wrote in an email from last year that the clock in your taskbar is not right during DST, during the rest of the year is correct only by chance. Do you have the timezone data base installed?, see if you have the file /etc/localtime in your system, if so you don't need to set the system variable TZ in mint.cnf, but be aware that the file localtime must be the correct one for you time zone. If not you can copy it from /usr/share/zoneinfo to the /etc directory and rename it to "localtime". |