Show
Ignore:
Timestamp:
12/18/08 18:22:18 (15 months ago)
Author:
jwage
Message:

[1.0, 1.1] Fixing Timestamp validator to remove regex since the individual date and time validator will do the job

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.0/lib/Doctrine/Validator/Timestamp.php

    r5086 r5315  
    4545        } 
    4646 
    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  
    5147        list($date, $time) = explode(' ', trim($value)); 
    5248