Undefined SET property or variable in 'QDateTime' class: Year

Login or register to post comments
1 reply [Last post]
Offline
Joined: 07/07/2008

I get this error;

Undefined SET property or variable in 'QDateTime' class: Year
Exception Type:   QUndefinedPropertyException

Source File:   C:\Program Files\Zend\Apache2\htdocs\includes\qcodo\_core\qform\QDateTimePicker.class.php     Line:   65

Line 60:    $this->intSelectedYear = $intYear;
Line 61:   
Line 62:    if (strlen($intYear) && strlen($intMonth) && strlen($intDay))
Line 63:    $dttNewDateTime->setDate($intYear, $intMonth, $intDay);
Line 64:    else
Line 65:    $dttNewDateTime->Year = null;
Line 66:    break;
Line 67:    }
Line 68:   
Line 69:    // Update Time Component
Line 70:    switch ($this->strDateTimePickerType) {

QDateTime has a property 'Year'. I do not understand what is going on.

profnotime's picture
Offline
Joined: 01/13/2009

Post the code that causes the error, let's debug!