mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Fix call to undefined "_12Hour" function
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@73532 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
b004149267
commit
41e2ea0629
@ -8,7 +8,7 @@ class Time extends DBField {
|
|||||||
|
|
||||||
function setValue($value) {
|
function setValue($value) {
|
||||||
if($value) {
|
if($value) {
|
||||||
if(preg_match( '/(\d{1,2})[:.](\d{2})([ap]m)/', $value, $match )) $this->_12Hour( $match );
|
if(preg_match( '/(\d{1,2})[:.](\d{2})([ap]m)/', $value, $match )) $this->TwelveHour( $match );
|
||||||
else $this->value = date('H:i:s', strtotime($value));
|
else $this->value = date('H:i:s', strtotime($value));
|
||||||
} else $value = null;
|
} else $value = null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user