Re: [SMARTY] date formatting
| From: | Ken Snyder | Date: | Thu, 04 Oct 2007 16:03:18 +0000 |
| Subject: | Re: [SMARTY] date formatting | ||
| References: | 1 2 3 4 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-13766@lists.php.net to get a copy of this message | ||
Peggy Schatz wrote:
Thanks to both of you! I just figured out the problem (as messju statet) when reading in the docs provided: Note: The valid range of a timestamp is typically from Fri, 13 Dec 1901 20:45:54 GMT to Tue, 19 Jan 2038 03:14:07 GMT. (These are the dates that correspond to the minimum and maximum values for a 32-bit signed integer.) Hmmm... I guess, I have to do some string formatting instead. Another option is to override the built-in date_format function with your own plugin that has more robust date handling such as PEAR::Date. To override built-in plugins, you can add an entry to the beginning of the plugins_dir array:$tpl = new Smarty(); array_unshift($tpl->plugins_dir, '/my/plugins/dir/'); - Ken Snyder