| Reseller Hosting Questions about your reseller hosting account. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
|
|
#13 (permalink) |
|
Registered User
Comfy Contributor
Joined in Sep 2005
Lives in The Mountains
Hosted on Pass43
282 posts
Gave thanks: 13
Thanked 12 times
|
My code was wrong... use this:
Code:
[php]
echo(date_default_timezone_set("Europe/Paris"));
Then save the file as php.ini and upload it to your SMF root folder. Sorry for the confusion in my previous post. I believe this should do the trick for you. SnakeMan |
|
|
|
|
|
#16 (permalink) |
|
Surpass Fan
Excelling Contributor
Joined in Nov 2005
Lives in Colorado
Hosted on DEDI
934 posts
Gave thanks: 2
Thanked 94 times
|
date_default_timezone_get() & date_default_timezone_set() are for use in individual scripts only.
To set a default value for your virtual server by using a php.ini file in your public_html directory, use: Code:
date.timezone = "America/New_York" America/Chicago for Central time, America/Denver for Mountain time, & America/Vancouver for Pacific time. etc. from the list. These are all for PHP 5.1.0 and above.
__________________
Where would you be if you were at the highest court in the land (US)? |
|
|
|
|
|
#18 (permalink) |
|
Registered User
Comfy Contributor
Joined in Jun 2006
Lives in Idaho
Hosted on PASS61
192 posts
Gave thanks: 16
Thanked 2 times
|
It sounds like PHP debug is turned on so that errors are displayed. The quick fix is to turn off debug mode, but that doesn't solve the problem of the server not knowing what time zone it is in.
__________________
pass61: Bucks Of The Northwest Chateau HOA Idaho Digital Productions Estrela Artists MyPaperCamera |
|
|
|