BUGFIX Time::setValue() now conforms to DBField::setValue() for E_STRICT compliance.

This commit is contained in:
Sean Harvey 2012-04-12 12:08:22 +12:00
parent 9a9cebb369
commit 6b40377a1c

View File

@ -16,7 +16,7 @@
*/
class Time extends DBField {
function setValue($value) {
function setValue($value, $record = null) {
if($value) {
if(preg_match( '/(\d{1,2})[:.](\d{2})([a|A|p|P|][m|M])/', $value, $match )) $this->TwelveHour( $match );
else $this->value = date('H:i:s', strtotime($value));