Re: [SMARTY] date formatting
[email protected] (Ken Snyder) Thu, 04 Oct 2007 10:03:18 -0600
| Newsgroups | php.smarty.general |
|---|---|
| Message-ID | <[email protected]> |
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