ntp time zone ftp weirdness

Discussion in 'Installation/Configuration' started by jsigned, Nov 25, 2008.

  1. jsigned

    jsigned New Member

    Let me start by saying this is an awesome site. :D I'm setting up an ISPConfig site and out of the 1,000 questions I've had this is the first that I couldn't find an answer to here.

    I followed the instructions on this site for installing a Debian etch server and then the setup for ISPConfig and everything worked pretty good. Now I'm setting up my web sites and when I ftp the files to the server they are time stamped with UTC time. But, the time reported by the server shows my local time. In my case UTC is several hours in the future which makes it pretty hard to upload changed files by their time stamp. I looked around and found the /etc/default/rcS file and changed UTC=yes to UTC=no and rebooted with no change in behavior.

    So whats the trick to getting the server to time stamp everything with the local time?

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can try to run the command tzconfig to set the timezone gaian. If that wont help, it might be a solution to run the "hardware" clock with your real timezone time and not utc, you can do this by:

    1) Set the correct time with the date command.
    2) Tell the hardware clock that it shall use the time that you set with the date command:

    hwclock --utc --systohc
  3. jsigned

    jsigned New Member

    Well I fixed it, but I don't like how I had to do it. :eek: No matter what I tried the server insisted upon putting the UTC time stamp on FTP'd files. So I removed NTP, set the time zone to GMT, and then set the server time using the date function. I'll just have to keep an eye on the servers time and adjust it when needed.

Share This Page