If you are using Raspian then there is a utility which allows you to specify the time zone and other setup options:/usr/bin/raspi-configIf you are using a debian variation (including raspbian) you can do:Code: [Selecteer]sudo dpkg-reconfigure tzdataThe time is set by contacting an NTP server, so you should have working internet access for it to set the time correctly, its the TZ you need to specify
sudo dpkg-reconfigure tzdata
pi@Server ~ $ sudo dpkg-reconfigure tzdataCurrent default time zone: 'Europe/Amsterdam'Local time is now: Sun Jun 7 13:30:49 CEST 2015.Universal Time is now: Sun Jun 7 11:30:49 UTC 2015.
De tijd van de raspberry staat wel goed zie ik op taakbalk. Ik weet niet of dit de zelfde tijd van de vsftpd server is.
use_localtime If enabled, vsftpd will display directory listings with the time in your local time zone. The default is to display GMT. The times returned by the MDTM FTP command are also affected by this option. Default: NO
Klopt het dat de tijden bij bestanden de gewijzigde tijden zijn i.p.v dat de bestanden zijn aangemaakt.
root@raspberrypi:/home/pi# sudo /etc/init.d/ntp stop[ ok ] Stopping NTP server: ntpd.root@raspberrypi:/home/pi# sudo ntpd -q -gntpd: time slew -0.000477sroot@raspberrypi:/home/pi# sudo /etc/init.d/ntp start[ ok ] Starting NTP server: ntpd.root@raspberrypi:/home/pi# sudo dpkg-reconfigure tzdataCurrent default time zone: 'Europe/Amsterdam'Local time is now: Tue Jun 9 13:30:09 CEST 2015.Universal Time is now: Tue Jun 9 11:30:09 UTC 2015.
use_localtime=YES
#use_localtime=YES