Date bug in older smarty included in 1.1b5
Posted: Sat Nov 19, 2005 8:41 am
Just a heads up. I just spend the last 2 hours tracking this down, but there's a bug in the version of Smarty currently packaged with CMS 1.1b5 in the smarty_make_timestamp() function that is used in the html_select_date() function and date_format modifier. This affects the news module in particular, causing the date selection mechanism to be out of whack. This bug may or may not affect you. It's been fixed in the 1.5.2 Changelog. If you encounter this bug, simply download the latest version of Smarty and replace the file shared.make_timestamp.php in the CMS distribution.
From the smarty NEWS file:
From the smarty NEWS file:
Version 1.5.2
-------------
- added Smarty object as fifth argument for template resource functions.
(Monte)
- fixed a bug with incorrectly combined cache and compile id in
clear_cache(). (Andrei)
- fixed bug in smarty_make_timestamp introduced in PHP 4.1.0. (Monte)
- fixed bug with cached insert debug timing. (Monte)
- added 'script' attribute to {insert..} which specifies the script that
the insert function can be found in. (Andrei)
- added default template function handler. (Monte)