html_select_date

From: Date: Tue, 01 Feb 2005 16:44:34 +0000
Subject: html_select_date
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12214@lists.php.net to get a copy of this message
Getting a bit confused with the following lines in html_select_date The current production version I'm using Smarty.2.5 (yes olde site) has if (!preg_match('/^\d{4}-\d{1,2}-\d{1,2}$/', $time)) { whilst the upgrade I'm going to do (2.6.6) has if (!preg_match('/^\d{0,4}-\d{0,2}-\d{0,2}$/', $time)) { This makes me very nervous as I'm dealing with pre epoch dates (and not a REgular Expressions expert ;-( ). What i want to confirm is whether the month and days can be single as well as double digit dates on version 2.6.6 ie 1980-1-1 will work as well as 1980-01-01 tia Pete

« previous php.smarty.general (#12214) next »