Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2013-12-04 11:50:55
- typspan
- New Member
- Registered: 2013-12-04
- Posts: 3
[solved] i'm getting a time error
Internal error “getdate(): itisnot safe to rely on the system’s timezone settings, You are “required” to use the date.timezone.setting or the date_default_timzone_set() function.
I want to set the time to ECT (GMT+1)
But my server is in California
Thanks if you can point me in the right direction here
First time here!
Howard
Offline
Re: [solved] i'm getting a time error
Either, set the timezone in your Textpattern config.php (textpattern/config.php
), like so:
date_default_timezone_set('Your/Timezone/Identifier');
Or add the value to your main php.ini
or in directory based user.ini:
date.timezone = "Your/Timezone/Identifier"
You can find list of valid identifiers here. ECT itself is not one as timezone abbreviations are shared by multiple countries and may be implemented differently. For instance, from countries that use ECT, Galapagos Islands uses daylight saving time.
A valid identifier could be, for instance:
date_default_timezone_set('America/Panama');
Offline
#3 2013-12-04 12:56:28
- typspan
- New Member
- Registered: 2013-12-04
- Posts: 3
Re: [solved] i'm getting a time error
Many Thanks Gocom
A very quick response
Offline