Hi,
I just need to get WHM server time using WHM API. Is it possible ?
Thx for helping.
Printable View
Hi,
I just need to get WHM server time using WHM API. Is it possible ?
Thx for helping.
Hi
I have also searched about it a lot & unfortunately the conclusion is there isn't any API for this yet. But you can get the time zone being displayed with a PHP script(Consult a Developer ). May be this can help you if you got any previous ideas about the .htaccess file;
Here are the sample code for this if you want to use .htaccess file:
You can set the timezone in .htaccess as well and can create a New File and name it ".htaccess", or you can edit the existing one. The .htaccess file belongs in /public_html/ or a subdirectory if for a subdomain or addon domain.
Add the line: SetEnv TZ America/Indianapolis
If you read it again you'll see I mean getting server time not setting it. I just want to synchronize my plugin time with server time but it's not good at all that cPanel/WHM API didn't consider a single line about it...even server info api function