View Full Version : Time per user
karl0smoo
03-05-2009, 11:40 PM
I know how to do it in PHP but this is too annoying explaining how to do it to each user.
How can i change the timezone for a specific user or if not possible would it be a good idea for a feature?
Thanks.
Rich-Boy
03-07-2009, 11:59 AM
I don't know of a way to do this but I think it's more of an OS specific function. Perhaps a forum related to your OS will be able to help.
Peter Laws
03-07-2009, 02:20 PM
Could it be done via the suPHP way? Then each user can have a php.ini of their own, hence can set the timezone in each?
Or.... set it in a .htaccess file with php value setting?
I don't know, I'm just clutching at straws......
nobaloney
03-08-2009, 03:49 PM
Where are you trying to set the time? PHP, as far as I know, uses system calls for the time.
And the time is set server wide.
Or do you mean the way forums (such as this one) do it? If so you can set an offset in a configuration file, and then in your PHP code add or subtract the ordinal value of the offset before you display the time.
Jeff
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.