Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…ICT compliance.
  • Loading branch information...
commit 6b40377a1c2850e43472cca72f825c3efb752a5f 1 parent 9a9cebb
Sean Harvey halkyon authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  model/fieldtypes/Time.php
2  model/fieldtypes/Time.php
View
@@ -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));
Please sign in to comment.
Something went wrong with that request. Please try again.