From dbbafff1a1034fdac93fd8aea203cc66758c3c26 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Fri, 10 Sep 2010 06:12:25 -0400 Subject: [PATCH] Patch from Filip that enables settting of sys_user.modules and sys_user.startmodule via client_add remote API call --- interface/lib/classes/tform.inc.php | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/interface/lib/classes/tform.inc.php b/interface/lib/classes/tform.inc.php index e9cbc93..49fd2bd 100644 --- a/interface/lib/classes/tform.inc.php +++ b/interface/lib/classes/tform.inc.php @@ -620,8 +620,9 @@ break; case 'DATE': if($record[$key] != '' && $record[$key] != '0000-00-00') { - list($tag,$monat,$jahr) = explode('.',$record[$key]); - $new_record[$key] = $jahr.'-'.$monat.'-'.$tag; + $date_parts = date_parse_from_format($this->dateformat,$record[$key]); + //list($tag,$monat,$jahr) = explode('.',$record[$key]); + $new_record[$key] = $date_parts['year'].'-'.$date_parts['month'].'-'.$date_parts['day']; //$tmp = strptime($record[$key],$this->dateformat); //$new_record[$key] = ($tmp['tm_year']+1900).'-'.($tmp['tm_mon']+1).'-'.$tmp['tm_mday']; } else { -- Gitblit v1.9.1