cPanel & WHM Version 98 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!
This object is in archive! 

Add a feature which will allow to change Time Zone of each user individually via cPanel.

Chazz Jain shared this idea 7 years ago
Needs Feedback

Most of the times in a web hosting company, clients ask to change Time Zone to their own Time Zone which is not possible to do. As server time zone is common to all accounts we want a feature in cPanel which could provide a feature that would allow our client to change Time Zone to which ever they want.

Best Answer
photo

Providing a per-user time zone is not something that is possible at this time. This is not a matter of cPanel & WHM's ability to support a time zone per-user, but a matter of CentOS/RHEL and all daemons/services running on it that would have no ability to make such a feature possible.


Not only would the OS at the kernel level need to be able to have a per-user time zone, but services like Apache and binaries like PHP would need to have developed in support for this as well. In short, virtually every technology utilized in the Linux world and hosting industry would need to make this change. Should this ever become a reality, cPanel & WHM certainly would be able to then adapt in this support.


Honestly, your best bet for this functionality is to look into virtualization. You can set time zones per-VPS, for example. So deploying each customer on their own VPS would provide them with their "own" time zone.


In short, cPanel & WHM is unable to even consider this feature request until the core OS itself and underlying technologies support this feature.

Replies (3)

photo
1

Providing a per-user time zone is not something that is possible at this time. This is not a matter of cPanel & WHM's ability to support a time zone per-user, but a matter of CentOS/RHEL and all daemons/services running on it that would have no ability to make such a feature possible.


Not only would the OS at the kernel level need to be able to have a per-user time zone, but services like Apache and binaries like PHP would need to have developed in support for this as well. In short, virtually every technology utilized in the Linux world and hosting industry would need to make this change. Should this ever become a reality, cPanel & WHM certainly would be able to then adapt in this support.


Honestly, your best bet for this functionality is to look into virtualization. You can set time zones per-VPS, for example. So deploying each customer on their own VPS would provide them with their "own" time zone.


In short, cPanel & WHM is unable to even consider this feature request until the core OS itself and underlying technologies support this feature.

photo
1

Is it possible through MySQL database ?

photo
2

If you are using SuPHP and you did not compile PHP to use the system's time zone, you can set a different time zone for PHP on a per-user basis. Here's documentation from one hosting provider on how to do so:


http://www.inmotionhosting.com/support/website/php/setting-the-timezone-for-php-in-the-phpini-file


The other software on the server (Apache, Exim, MySQL, etc.) will always operate in the server's time zone. Since they are system-wide, using a different timezone for each user would make administration basically impossible. (Imagine what it would do to log files, for example. Searching for events that happened at a specific time couldn't be done.)

Leave a Comment
 
Attach a file