diff --git a/core/model/fieldtypes/Time.php b/core/model/fieldtypes/Time.php index 615432871..7afd56f19 100755 --- a/core/model/fieldtypes/Time.php +++ b/core/model/fieldtypes/Time.php @@ -6,17 +6,12 @@ */ class Time extends DBField { - function setValue($value) { - + function setValue($value) { if($value) { if(preg_match( '/(\d{1,2})[:.](\d{2})([ap]m)/', $value, $match )) $this->_12Hour( $match ); else $this->value = date('H:i:s', strtotime($value)); } else $value = null; } - - function setValue($value) { - return $this->setValue( $value ); - } function Nice() { return date('g:ia', strtotime($this->value));