Changeset 5086
- Timestamp:
- 10/15/08 19:30:16 (9 months ago)
- Location:
- branches
- Files:
-
- 2 added
- 6 modified
-
1.0/lib/Doctrine/Validator/Time.php (modified) (1 diff)
-
1.0/lib/Doctrine/Validator/Timestamp.php (modified) (1 diff)
-
1.0/tests/run.php (modified) (1 diff)
-
1.0/tests/Ticket/1464TestCase.php (added)
-
1.1/lib/Doctrine/Validator/Time.php (modified) (1 diff)
-
1.1/lib/Doctrine/Validator/Timestamp.php (modified) (1 diff)
-
1.1/tests/run.php (modified) (1 diff)
-
1.1/tests/Ticket/1464TestCase.php (added)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/lib/Doctrine/Validator/Time.php
r4072 r5086 53 53 } 54 54 55 if ( ! preg_match('/^ * [0-9]{2}:[0-9]{2}:[0-9]{2}*$/', $value)) {55 if ( ! preg_match('/^ *\d{2}:\d{2}:\d{2}(.\d{6}\+\d{2})? *$/', $value)) { 56 56 return false; 57 57 } -
branches/1.0/lib/Doctrine/Validator/Timestamp.php
r4072 r5086 45 45 } 46 46 47 if ( ! preg_match('/^ * [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}*$/', $value)) {47 if ( ! preg_match('/^ *\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(.\d{6}\+\d{2})? *$/', $value)) { 48 48 return false; 49 49 } -
branches/1.0/tests/run.php
r5066 r5086 142 142 $tickets->addTestCase(new Doctrine_Ticket_1454_TestCase()); 143 143 $tickets->addTestCase(new Doctrine_Ticket_1461_TestCase()); 144 $tickets->addTestCase(new Doctrine_Ticket_1464_TestCase()); 144 145 $tickets->addTestCase(new Doctrine_Ticket_1465_TestCase()); 145 146 $tickets->addTestCase(new Doctrine_Ticket_1480_TestCase()); -
branches/1.1/lib/Doctrine/Validator/Time.php
r4072 r5086 53 53 } 54 54 55 if ( ! preg_match('/^ * [0-9]{2}:[0-9]{2}:[0-9]{2}*$/', $value)) {55 if ( ! preg_match('/^ *\d{2}:\d{2}:\d{2}(.\d{6}\+\d{2})? *$/', $value)) { 56 56 return false; 57 57 } -
branches/1.1/lib/Doctrine/Validator/Timestamp.php
r4072 r5086 45 45 } 46 46 47 if ( ! preg_match('/^ * [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}*$/', $value)) {47 if ( ! preg_match('/^ *\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(.\d{6}\+\d{2})? *$/', $value)) { 48 48 return false; 49 49 } -
branches/1.1/tests/run.php
r5084 r5086 151 151 $tickets->addTestCase(new Doctrine_Ticket_1454_TestCase()); 152 152 $tickets->addTestCase(new Doctrine_Ticket_1461_TestCase()); 153 $tickets->addTestCase(new Doctrine_Ticket_1464_TestCase()); 153 154 $tickets->addTestCase(new Doctrine_Ticket_1465_TestCase()); 154 155 $tickets->addTestCase(new Doctrine_Ticket_1467_TestCase());