Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting 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 'UTC' for '8.0/no DST' instead in D:\Apache2.2\htdocs\smarty\Smarty_Compiler.class.php on line 400
标题 显示的内容为 “标题”。 显示正常了。
这种错误只要一刷新就没事了 而且只会出现一次,直到你在一次的动PHP相对的 HTML文件时就会在出错,不过也是在此刷新就好了。
(说明一下比如我的HTML文件里就以个变量 {$title},我写成{$title },然后随即就改回来{$title} 就这样都能出现这种错误)

解决方案 »

  1.   

    警告:strftime()[function.strftime]:它不是依靠安全系统的时区设置。 * *你是需要使用date.timezone设置或date_default_timezone_set()函数。如果你使用过这些方法,并你仍然收到此警告,您最有可能拼错时区标识符。我们选择'星期一'为'8 .0/no的DST',....你的 Smarty 版本可能比较老了
      

  2.   

    Smarty2.6.18 这个就是我用的版本  要换3.0 的吗
     不过 我用wamp5集成环境就不出现错误。
      

  3.   

    因为我不用这个东东,你可以查看 Smarty_Compiler.class.php 的 400 行中 strftime 的参数。可能使用了不支持的转换标记