Browse files

BUGFIX Time::setValue() now conforms to DBField::setValue() for E_STR…

…ICT compliance.
  • Loading branch information...
1 parent 9a9cebb commit 6b40377a1c2850e43472cca72f825c3efb752a5f @halkyon halkyon committed Apr 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 model/fieldtypes/Time.php
View
2 model/fieldtypes/Time.php
@@ -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));

0 comments on commit 6b40377

Please sign in to comment.