strftime() error
am 28.01.2008 11:04:48 von brunormbarros
strftime() [function.strftime]: It is not safe to rely on the system's
timezone settings. Please use the date.timezone setting, the TZ
environment variable or the date_default_timezone_set() function. In
case you used any of those methods and you are still getting this
warning, you most likely misspelled the timezone identifier. We
selected 'Europe/London' for '0.0/no DST' instead
This appeared while using Smarty. I had used Smarty before on this
computer and this had never appeared. What happened?
Smarty_Compiler.class.php:
// put header at the top of the compiled template
$template_header = "_version.",
created on ".strftime("%Y-%m-%d %H:%M:%S")."\n";
$template_header .= " compiled from
".strtr(urlencode($resource_name), array('%2F'=>'/', '%3A'=>':'))."
*/ ?>\n";
The second line, where strftime() is, is what causes the error.
Re: strftime() error
am 28.01.2008 19:00:02 von zeldorblat
On Jan 28, 5:04 am, Bruno Rafael Moreira de Barros
wrote:
> strftime() [function.strftime]: It is not safe to rely on the system's
> timezone settings. Please use the date.timezone setting, the TZ
> environment variable or the date_default_timezone_set() function. In
> case you used any of those methods and you are still getting this
> warning, you most likely misspelled the timezone identifier. We
> selected 'Europe/London' for '0.0/no DST' instead
>
> This appeared while using Smarty. I had used Smarty before on this
> computer and this had never appeared. What happened?
>
> Smarty_Compiler.class.php:
>
> // put header at the top of the compiled template
> $template_header = "_version.",
> created on ".strftime("%Y-%m-%d %H:%M:%S")."\n";
> $template_header .= " compiled from
> ".strtr(urlencode($resource_name), array('%2F'=>'/', '%3A'=>':'))."
> */ ?>\n";
>
> The second line, where strftime() is, is what causes the error.
Since PHP 5.1.0, if you're running with E_STRICT error reporting
you'll get that if the timezone hasn't been explicitly set. You can
explicitly set it in any of the following ways:
The date.timezone setting in php.ini
At runtime with date_default_timezone_set()
Setting the TZ variable in Apache's environment (in
httpd.conf, .htaccess, or a few other ways)
Re: strftime() error
am 29.01.2008 14:47:46 von zeldorblat
On Jan 29, 8:40 am, Bruno Rafael Moreira de Barros
wrote:
> Oh ok thanks, I didn't know that.
Yeah, I saw that on the manual page for strftime():