Jump to content

How to convert the current time to US central?


mesh2005

Recommended Posts

I don't have a root access to change the local timezone of the server, currently it is set to PST and I want to get the time according to the US Central timezone.

Someone told me that I need to call putenv("TZ=US/Central") before the date function is called but I want to know is there any better idea?

Thank you

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.