From a4cf64f105aff40bb586864842f498580e9f5d96 Mon Sep 17 00:00:00 2001 From: Geoff Munn Date: Mon, 18 May 2009 21:24:33 +0000 Subject: [PATCH] Formatting fixed git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@77099 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/fieldtypes/SSDatetime.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/model/fieldtypes/SSDatetime.php b/core/model/fieldtypes/SSDatetime.php index 148805dc2..552b19999 100644 --- a/core/model/fieldtypes/SSDatetime.php +++ b/core/model/fieldtypes/SSDatetime.php @@ -13,9 +13,9 @@ */ class SSDatetime extends Date { function setValue($value) { - // Default to NZ date format - strtotime expects a US date - if(ereg('^([0-9]+)/([0-9]+)/([0-9]+)$', $value, $parts)) - $value = "$parts[2]/$parts[1]/$parts[3]"; + // Default to NZ date format - strtotime expects a US date + if(ereg('^([0-9]+)/([0-9]+)/([0-9]+)$', $value, $parts)) + $value = "$parts[2]/$parts[1]/$parts[3]"; if($value) $this->value = date('Y-m-d H:i:s', strtotime($value)); else $value = null;