Server Time

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?
 
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
 
or, you can syncronize from an ip server time:

ex:

rdate -s time.nist.gov


then save it:

hwclock --systohc
 
Hi,

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

Thank you.
 
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
 
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. :)
 
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
 
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
 
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
 
I have same problem i have configured:
Mexico_City as my timezone
But on a php system it still showing me the hour in -5utc instead -6utc
My /etc/localtime
[root@core zoneinfo]# ls -l /etc/localtime
lrwxrwxrwx. 1 root root 34 Apr 10 16:23 /etc/localtime -> /usr/share/zoneinfo/Mexico/General

My /etc/adjtime
0.000000 1681166548 0.000000
1681166548
UTC

[root@core zoneinfo]# date
Mon Apr 10 16:48:32 CST 2023

[root@core zoneinfo]# zdump /usr/share/zoneinfo/* | tail -10
/usr/share/zoneinfo/tzdata.zi Mon Apr 10 22:52:18 2023
/usr/share/zoneinfo/UCT Mon Apr 10 22:52:18 2023 UTC
/usr/share/zoneinfo/Universal Mon Apr 10 22:52:18 2023 UTC
/usr/share/zoneinfo/US Mon Apr 10 22:52:18 2023
/usr/share/zoneinfo/UTC Mon Apr 10 22:52:18 2023 UTC
/usr/share/zoneinfo/WET Mon Apr 10 23:52:18 2023 WEST
/usr/share/zoneinfo/W-SU Tue Apr 11 01:52:18 2023 MSK
/usr/share/zoneinfo/zone1970.tab Mon Apr 10 22:52:18 2023
/usr/share/zoneinfo/zone.tab Mon Apr 10 22:52:18 2023
/usr/share/zoneinfo/Zulu Mon Apr 10 22:52:18 2023 UTC
[root@core zoneinfo]#

1681167360792.png

1681167219656.png
It still showing me the wrong time
 
PHP uses its own settings of a TimeZone and ignores system settings. You might need to update TimeZone in /usr/local/directadmin/custombuild/options.conf and re-install php.ini with CustomBuild.
 
Back
Top