Changeset 5315
- Timestamp:
- 12/18/08 23:22:18 (7 months ago)
- Location:
- branches
- Files:
-
- 2 modified
-
1.0/lib/Doctrine/Validator/Timestamp.php (modified) (1 diff)
-
1.1/lib/Doctrine/Validator/Timestamp.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/lib/Doctrine/Validator/Timestamp.php
r5086 r5315 45 45 } 46 46 47 if ( ! preg_match('/^ *\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(.\d{6}\+\d{2})? *$/', $value)) {48 return false;49 }50 51 47 list($date, $time) = explode(' ', trim($value)); 52 48 -
branches/1.1/lib/Doctrine/Validator/Timestamp.php
r5086 r5315 45 45 } 46 46 47 if ( ! preg_match('/^ *\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(.\d{6}\+\d{2})? *$/', $value)) {48 return false;49 }50 51 47 list($date, $time) = explode(' ', trim($value)); 52 48