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:
Sean Harvey 2009-03-23 02:50:45 +00:00 committed by Sam Minnee
parent 07ef4d77f9
commit bb583293a6

View File

@ -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;
}