From a291f42112153cbfc17ea9208645fda33866ef29 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Wed, 25 Apr 2012 12:02:06 -0400 Subject: [PATCH] CC-3716: cannot create show start before 10:00 -fixed --- airtime_mvc/application/forms/AddShowWhen.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airtime_mvc/application/forms/AddShowWhen.php b/airtime_mvc/application/forms/AddShowWhen.php index 632808042..b3861602a 100644 --- a/airtime_mvc/application/forms/AddShowWhen.php +++ b/airtime_mvc/application/forms/AddShowWhen.php @@ -32,7 +32,7 @@ class Application_Form_AddShowWhen extends Zend_Form_SubForm ->setValidators(array( 'NotEmpty', array('date', false, array('HH:mm')), - array('regex', false, array('/^[0-2][0-3]:[0-5][0-9]$/', 'messages' => 'Time format should be HH:mm')) + array('regex', false, array('/^[0-2]?[0-9]:[0-5][0-9]$/', 'messages' => 'Time format should be HH:mm')) ))->setDecorators(array('ViewHelper')); $startTime->setAttrib('alt', 'time'); $this->addElement($startTime);