You are here: strftime() error « PHP Programming Language « IT news, forums, messages
strftime() error

Posted by Bruno Rafael Moreira de Barros on 09/28/88 12:01

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 = "<?php /* Smarty version ".$this->_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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация