- Timestamp:
- 12/31/08 00:13:19 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
fDate.php
r448 r453 Hide Line Numbers 118 118 throw new fValidationException( 119 119 'The adjustment specified, %s, does not appear to be a valid relative date measurement', 120 $adjustment121 );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.',127 120 $adjustment 128 121 ); fTime.php
r448 r453 Hide Line Numbers 122 122 } 123 123 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 $adjustment128 );129 }130 131 124 return new fTime($timestamp); 132 125 }
