Skip to content
This repository
Browse code

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

…ICT compliance.
  • Loading branch information...
commit 6b40377a1c2850e43472cca72f825c3efb752a5f 1 parent 9a9cebb
Sean Harvey authored April 12, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

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

0 notes on commit 6b40377

Please sign in to comment.
Something went wrong with that request. Please try again.