ThatScriptGuy
08-02-2006, 01:05 PM
Well, in my phpBB install, all of the times are off because I'm not sure what my server's timezone is in relation to GMT.
What can I run from SSH to view the timezone/current time or adjust it?
Thanks,
Kevin
Mark S
08-02-2006, 01:23 PM
run "date" from the commandline and see. If it is off (by minutes, not hours) do "man date" and change the date; then update the symbolic link of /etc/localtime to change the timezone.
NOTE: This is how it is on all of our gentoo servers, I am not 100% sure how most of the other linux distributions do this.
ThatScriptGuy
08-02-2006, 01:32 PM
Well, what if it is off by hours?
After running date, I got this:
Wed Aug 2 06:16:06 CDT 2006
So, the date and year is right, but if the timezone is CDT (GMT-5) then the correct time should be something along the lines of 13:30:06
Kevin
ThatScriptGuy
08-02-2006, 01:37 PM
OK, I tried running this
date --set=Wed Aug 2 13:31:00 CDT 2006
and it said that it was reformatting date and then it said extra operand `2'
Obviously I'm not trying to set it correctly.......
Kevin
ThatScriptGuy
08-02-2006, 01:45 PM
nvm..figured it out....It just wanted the time, not the whole date....
We're good now :)
Thanks again.