root

Changeset 453

Show
Ignore:
Timestamp:
12/31/08 00:13:19 (2 years ago)
Author:
wbond
Message:

Removed the adjustment amount check on fDate::adjust() and fTime::adjust() since it was incorrect sometimes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • fDate.php

    r448 r453 Hide Line Numbers
    118118            throw new fValidationException( 
    119119                'The adjustment specified, %s, does not appear to be a valid relative date measurement', 
    120                 $adjustment 
    121             ); 
    122         } 
    123          
    124         if (date('H:i:s', $timestamp) != '00:00:00') { 
    125             throw new fValidationException( 
    126                 'The adjustment specified, %s, appears to be a time or timezone adjustment. Only adjustments of a day or greater are allowed for dates.', 
    127120                $adjustment 
    128121            ); 
  • fTime.php

    r448 r453 Hide Line Numbers
    122122        } 
    123123         
    124         if (!preg_match('#^\s*(([+-])?\d+(\s+(min(untes?)?|sec(onds?)?|hours?))?\s*|now\s*)+\s*$#iD', $adjustment)) { 
    125             throw new fValidationException( 
    126                 'The adjustment specified, %s, appears to be a date or timezone adjustment. Only adjustments of hours, minutes and seconds are allowed for times.', 
    127                 $adjustment 
    128             ); 
    129         } 
    130          
    131124        return new fTime($timestamp); 
    132125    }