Important Notice:
Two sections of this forum are available only to registered customers. In order to receive access to the Customer Forums and ResellerCentral Forums, you must first register on these forums or login to your existing forum account. If you are an existing HostNine customer, be sure to register using the email address on file for your billing profile.
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I've just come across a problem I've never thought about before...
I'm based in the UK and realised my scripts no longer have my own timezone for obvious reasons. Basically, I could really do with the time zone being GMT. I realise it is easy enough to do from within a php script but would like a more permanent fix if possible. I've tried adding the following to a htaccess to no avail: SetEnv TZ Europe/London Any ideas? |
|
#2
|
|||
|
|||
|
You can with your dedicated set this in the system:
First:logon as SU Change directory to /etc # cd /etc And I think for centos this is the path to create a symlink: /usr/share/zoneinfo/?dirname?/zonefile when this is determined replace the path in the following # ln -sf /usr/share/zoneinfo/GMT localtime Now use date command to verify that your timezone is changed: $ date If the server is set to use NTP you might have to cron this |
|
#3
|
|||
|
|||
|
Cheers for the reply... and umm any suggestions for a mere reseller/shared server?
|
|
#4
|
|||
|
|||
|
This is a little late (sorry, I'm new to the forums) but a solution might be the following:
In your .htaccess file, try this: Code:
php_value date.timezone Europe/London A list of PHPs supported timezones is in the appendix, located at: http://ca.php.net/manual/en/timezones.php Hope that helps! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|




Linear Mode
