mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Fix call to undefined "_12Hour" function (merged from r73523)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@73533 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
07ef4d77f9
commit
bb583293a6
@ -8,7 +8,7 @@ class Time extends DBField {
|
||||
|
||||
function setValue($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 $value = null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user