From a0d1c7d2b1792f7846c699c88aea43a97c2cd374 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 25 May 2010 04:57:43 +0000 Subject: [PATCH] BUGFIX: Date::now() supplies wrong string - it misses leading zeroes on hours (from r100767) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105644 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/fieldtypes/Date.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/model/fieldtypes/Date.php b/core/model/fieldtypes/Date.php index 719322305..072efd5cd 100644 --- a/core/model/fieldtypes/Date.php +++ b/core/model/fieldtypes/Date.php @@ -132,7 +132,7 @@ class Date extends DBField { } function Rfc2822() { - if($this->value) return date('Y-m-d g:i:s', strtotime($this->value)); + if($this->value) return date('Y-m-d H:i:s', strtotime($this->value)); } function Rfc3339() {