Server Time

secretman

Verified User
Joined
Nov 10, 2003
Messages
20
Under /usr/sbin/ don't exist timeconfig.

Is possible request a ticket with my directadmin panel?

I have urgent need to resolve the cgi-bin problem (my other thread) and have need to change time.

In future direct admin release will include server time change and cgi working under public_html folder?
 

ProWebUK

Verified User
Joined
Jun 9, 2003
Messages
2,326
Location
UK
secretman said:
Under /usr/sbin/ don't exist timeconfig.

Is possible request a ticket with my directadmin panel?

I have urgent need to resolve the cgi-bin problem (my other thread) and have need to change time.

In future direct admin release will include server time change and cgi working under public_html folder?
No, This isn't a problem related in any way at all with DirectAdmin, setting the time is the job of the system admin.

You can also use the following command:

date -s 'Fri Feb 23 mm:hh:ss GMT 2004'

Chris
 

outpernet

Verified User
Joined
May 26, 2003
Messages
251
or, you can syncronize from an ip server time:

ex:

rdate -s time.nist.gov


then save it:

hwclock --systohc
 

hoobastank68

Verified User
Joined
Feb 25, 2004
Messages
35
Hi,

I'm also interested in learning how this works in DA to change timezone to GMT -5

Thank you.
 

ProWebUK

Verified User
Joined
Jun 9, 2003
Messages
2,326
Location
UK
hoobastank68 said:
Hi,

I'm also interested in learning how this works in DA to change timezone to GMT -5

Thank you.
use tzselect, timeconfig or date as mentioned earlier in this thread.

Chris
 

l0rdphi1

Verified User
Joined
Jun 22, 2003
Messages
1,471
To set your timezone, set a symlink from /etc/localtime to the file in the /usr/share/zoneinfo that corresponds with the timezone you reside.

ln -sf /usr/share/zoneinfo/your/zone /etc/localtime

Should work. :)
 

hoobastank68

Verified User
Joined
Feb 25, 2004
Messages
35
I did:
ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime

Seems like now my netstatus script shows server time as

00:40:01

It's really ~7:40 PM
 

hoobastank68

Verified User
Joined
Feb 25, 2004
Messages
35
k finally got it..

did tzselect
before i chose 1) Eastern time

this time chose 7) Eastern Standard Time - Indiana - Starke County

And worked fine.... thanks
 

ProWebUK

Verified User
Joined
Jun 9, 2003
Messages
2,326
Location
UK
The symlink trick always works if that fails though, or you can just copy the file over to /etc/localtime (basically the same thing there)

Chris
 
Top