I have a record with a time field set like this:
'startTime' => array(AttributeType::DateTime, 'column'=>ColumnType::Time, 'required' => true),
'endTime' => array(AttributeType::DateTime, 'column'=>ColumnType::Time),
The data is stored in the database as a string like this:
10:45:53
When I populate models from an elementCriteria query, the string value "10:45:53" does not work with creating a new DateTime object so I get false returned.
I would need to supply a full date in order to get a valid DateTime object back.
How should I deal with this? Is this i a bug in core? Why have ColumnType::Time
if its not going to work correctly when pulling the value from the database?