summaryrefslogtreecommitdiff
path: root/protected/components/DateCompareValidator.php
diff options
context:
space:
mode:
Diffstat (limited to 'protected/components/DateCompareValidator.php')
-rw-r--r--protected/components/DateCompareValidator.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/protected/components/DateCompareValidator.php b/protected/components/DateCompareValidator.php
index c013382..efa6763 100644
--- a/protected/components/DateCompareValidator.php
+++ b/protected/components/DateCompareValidator.php
@@ -40,9 +40,10 @@ class DateCompareValidator extends CValidator {
return;
}
- $start = CDateTimeParser::parse($object->$attribute, $this->format);
-
- $end = CDateTimeParser::parse($this->compareValue, $this->format);
+ $start = $object->$attribute;
+ Yii::trace('Input value: '.$start. ' -> output timestamp: '.$object->$attribute, 'ccwn.astaf.format');
+ $end = $this->compareValue;
+ Yii::trace('Input value: '.$end. ' -> output timestamp: '.$this->compareValue, 'ccwn.astaf.format');
//a little php trick - safe than eval and easier than a big switch statement