Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Warning: strftime() [function.strftime]

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
dmllc
Smarty Rookie


Joined: 15 Oct 2010
Posts: 6

PostPosted: Fri Nov 11, 2011 3:32 am    Post subject: Warning: strftime() [function.strftime] Reply with quote

smarty noob here. 2nd project. i just installed 3.1.4 and get this error when rendering a template:


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 'America/New_York' for '-5.0/no DST' instead in projects\library\Smarty-3.1.4\libs\sysplugins\smarty_internal_templatecompilerbase.php on line 148

i'm not sure what caused this and how to resolve it. any help is appreciated.
Back to top
View user's profile Send private message
rodneyrehm
Administrator


Joined: 30 Mar 2007
Posts: 674
Location: Germany, border to Switzerland

PostPosted: Fri Nov 11, 2011 7:29 am    Post subject: Reply with quote

Have a look at ini.date.timezone and then either change your php.ini or drop in
Code:
ini_set('date.timezone', 'Europe/Berlin');
(or wherever your system's at)
_________________
Twitter
Back to top
View user's profile Send private message Visit poster's website
dmllc
Smarty Rookie


Joined: 15 Oct 2010
Posts: 6

PostPosted: Mon Nov 14, 2011 2:57 am    Post subject: Reply with quote

that was it. thx
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty 3 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP