<![CDATA[ (SOLVED) Warning: strtotime() [function.strtotime] in EVO 1.01 on PHP 5.3.0 - My Forums]]> https://forums.modx.com/thread/?thread=33294 <![CDATA[Re: (SOLVED) Warning: strtotime() [function.strtotime] in EVO 1.01 on PHP 5.3.0]]> https://forums.modx.com/thread/33294/solved-warning-strtotime-function-strtotime-in-evo-1-01-on-php-5-3-0?page=2#dis-post-183118
]]>
sottwell Aug 11, 2009, 10:16 PM https://forums.modx.com/thread/33294/solved-warning-strtotime-function-strtotime-in-evo-1-01-on-php-5-3-0?page=2#dis-post-183118
<![CDATA[Re: (SOLVED) Warning: strtotime() [function.strtotime] in EVO 1.01 on PHP 5.3.0]]> https://forums.modx.com/thread/33294/solved-warning-strtotime-function-strtotime-in-evo-1-01-on-php-5-3-0#dis-post-183117 Quote from: Paprikas at Aug 11, 2009, 02:36 PM

What difference between
SetEnv TZ Europe/Copenhagen

and
php_value date.timezone Europe/Copenhagen

?

@Paprikas: I’m sorry - I mixed two things together:

suPHP does not support the php_value/php_admin_value directive known by mod_php to parse configuration options to scripts for certain virtual hosts or directories.

- from suPHP’s FAQ on http://www.suphp.org/FAQ.html - but - if I understand it correctly this time - that is when placed directly in the htaccess file and therefore not in a php file.]]>
Henrik Nielsen Aug 11, 2009, 01:36 PM https://forums.modx.com/thread/33294/solved-warning-strtotime-function-strtotime-in-evo-1-01-on-php-5-3-0#dis-post-183117
<![CDATA[Re: (SOLVED) Warning: strtotime() [function.strtotime] in EVO 1.01 on PHP 5.3.0]]> https://forums.modx.com/thread/33294/solved-warning-strtotime-function-strtotime-in-evo-1-01-on-php-5-3-0#dis-post-183116
SetEnv TZ Europe/Copenhagen

and
php_value date.timezone Europe/Copenhagen

?]]>
Paprikas Aug 11, 2009, 09:36 AM https://forums.modx.com/thread/33294/solved-warning-strtotime-function-strtotime-in-evo-1-01-on-php-5-3-0#dis-post-183116
<![CDATA[Re: (SOLVED) Warning: strtotime() [function.strtotime] in EVO 1.01 on PHP 5.3.0]]> https://forums.modx.com/thread/33294/solved-warning-strtotime-function-strtotime-in-evo-1-01-on-php-5-3-0#dis-post-183115 Quote from: rthrash at Aug 11, 2009, 01:39 PM

I was thinking it could be automated and included in the config.inc.php file. Not sure if that would work though, but hoping it might.

I’m not sure if I remember it correctly, but setting it in php with for example "php_value date.timezone" could give some trouble for those who are on a shared server running suPHP? - And I’m not a programmer (by nature or in reality), so there is probably some others who know more...]]>
Henrik Nielsen Aug 11, 2009, 08:52 AM https://forums.modx.com/thread/33294/solved-warning-strtotime-function-strtotime-in-evo-1-01-on-php-5-3-0#dis-post-183115
<![CDATA[Re: (SOLVED) Warning: strtotime() [function.strtotime] in EVO 1.01 on PHP 5.3.0]]> https://forums.modx.com/thread/33294/solved-warning-strtotime-function-strtotime-in-evo-1-01-on-php-5-3-0#dis-post-183114 rethrash Aug 11, 2009, 08:39 AM https://forums.modx.com/thread/33294/solved-warning-strtotime-function-strtotime-in-evo-1-01-on-php-5-3-0#dis-post-183114 <![CDATA[Re: (SOLVED) Warning: strtotime() [function.strtotime] in EVO 1.01 on PHP 5.3.0]]> https://forums.modx.com/thread/33294/solved-warning-strtotime-function-strtotime-in-evo-1-01-on-php-5-3-0#dis-post-183113 Quote from: rthrash at Aug 11, 2009, 11:56 AM

Would it help to have the timezone set during installation/upgrade? This would be if it didn’t detect a proper setting in php.ini. Perhaps a version compare if it doesn’t detect a proper setting in the PHP config ... or?

For me it is not a problem to edit the htaccess file myself, what - I think - the most of us do. But if it should be set during installation, then should the other settings in the htaccess file also be set, which will result in a more complicated installation process.

My suggestion are that something like this:

#Timezone Settings 
#(Required in PHP 5.3+ if your don't have the permissions to edit the php.ini file: 
#Replace Location with your own location - See: a link to some documentation )
#SetEnv TZ Location 

- are placed in the htaccess file - just to showing people the right direction, and furthermore it’s also a easy solution wink

But what are the other users thinking about this?

Greetings!]]>
Henrik Nielsen Aug 11, 2009, 08:11 AM https://forums.modx.com/thread/33294/solved-warning-strtotime-function-strtotime-in-evo-1-01-on-php-5-3-0#dis-post-183113
<![CDATA[Re: (SOLVED) Warning: strtotime() [function.strtotime] in EVO 1.01 on PHP 5.3.0]]> https://forums.modx.com/thread/33294/solved-warning-strtotime-function-strtotime-in-evo-1-01-on-php-5-3-0#dis-post-183112 rethrash Aug 11, 2009, 06:56 AM https://forums.modx.com/thread/33294/solved-warning-strtotime-function-strtotime-in-evo-1-01-on-php-5-3-0#dis-post-183112 <![CDATA[Re: Warning: strtotime() [function.strtotime] in EVO 1.01 on PHP 5.3.0]]> https://forums.modx.com/thread/33294/solved-warning-strtotime-function-strtotime-in-evo-1-01-on-php-5-3-0#dis-post-183111
Thank you for your help!

I could not fix this in my php.ini file, (I don’t have permissions to edit the full content of the file).
But I added this in my .htaccess file:

SetEnv TZ Europe/Copenhagen


- Maybe it should be included in the distribution file, that this are a possibly solution?

Greetings!]]>
Henrik Nielsen Aug 06, 2009, 05:23 PM https://forums.modx.com/thread/33294/solved-warning-strtotime-function-strtotime-in-evo-1-01-on-php-5-3-0#dis-post-183111
<![CDATA[Re: Warning: strtotime() [function.strtotime] in EVO 1.01 on PHP 5.3.0]]> https://forums.modx.com/thread/33294/solved-warning-strtotime-function-strtotime-in-evo-1-01-on-php-5-3-0#dis-post-183110
Quote from: garryn

The date timezone error is also something I had when I upgraded to PHP 5.3, it seems the stock PHP 5.3 doesn’t set a value for this - to correct the problem, edit your php.ini file and add in a recognized timezone value for the ’date.timezone’ setting. There’s a whole list of accepted timezones at: http://us.php.net/manual/en/timezones.php
]]>
splittingred Aug 06, 2009, 05:10 PM https://forums.modx.com/thread/33294/solved-warning-strtotime-function-strtotime-in-evo-1-01-on-php-5-3-0#dis-post-183110
<![CDATA[Re: Warning: strtotime() [function.strtotime] in EVO 1.01 on PHP 5.3.0]]> https://forums.modx.com/thread/33294/solved-warning-strtotime-function-strtotime-in-evo-1-01-on-php-5-3-0#dis-post-183109
http://modxcms.com/forums/index.php/topic,37756.msg228980.html#msg228980

cheers/k]]>
kongondo Aug 06, 2009, 05:03 PM https://forums.modx.com/thread/33294/solved-warning-strtotime-function-strtotime-in-evo-1-01-on-php-5-3-0#dis-post-183109