diff options
| author | Tristan Zur <tzur@ccwn.org> | 2012-05-15 21:34:54 +0200 |
|---|---|---|
| committer | Tristan Zur <tzur@ccwn.org> | 2012-05-15 21:34:54 +0200 |
| commit | 1c57e4d02c914cb83d13ef919179f9cb73b5fbbe (patch) | |
| tree | 2d987f9905432d5fecd918591c581365276c0f85 /protected/components/DateCompareValidator.php | |
| parent | 94bb97f7b574ad8557d568a2ef1288dae3b4e9c8 (diff) | |
- Initiale Verein-Veranstaltungsverwaltung
- components/Html ergänzt für Anzeige der Einheiten-Dropdown Box
- Logo-Upload für Admins
- AngebotVerein mit Autocomplete und "Einheiten-Tausch"
Diffstat (limited to 'protected/components/DateCompareValidator.php')
| -rw-r--r-- | protected/components/DateCompareValidator.php | 7 |
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 |
