openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit b31155288c026ce46c9392b50ba58534a05efdac
parent d52add11a8b767cad424562e06388aaa0227b2ce
Author: dankert <devnull@localhost>
Date:   Thu, 24 Dec 2009 01:02:19 +0100

Datum-Bestandteile intern ohne führende Null speichern.

Diffstat:
actionClasses/PageelementAction.class.php | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/actionClasses/PageelementAction.class.php b/actionClasses/PageelementAction.class.php @@ -210,12 +210,12 @@ class PageelementAction extends Action $this->getRequestVar('day'), $this->getRequestVar('year') ); } - $year = date('Y',$date); - $month = date('n',$date); - $day = date('j',$date); - $hour = date('G',$date); - $minute = date('i',$date); - $second = date('s',$date); + $year = intval(date('Y',$date)); + $month = intval(date('n',$date)); + $day = intval(date('j',$date)); + $hour = intval(date('G',$date)); + $minute = intval(date('i',$date)); + $second = intval(date('s',$date)); $this->setTemplateVar('year' ,$year ); $this->setTemplateVar('month' ,$month ); $this->setTemplateVar('day' ,$day );