From 732b3d46e03566f0c80a02201b104fcae0409ba1 Mon Sep 17 00:00:00 2001 From: sunsetsystems Date: Fri, 22 May 2009 20:47:59 +0000 Subject: [PATCH] replace 00 with 01 in day or month of a date --- interface/main/ippf_export.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interface/main/ippf_export.php b/interface/main/ippf_export.php index fe83f4a51..90c39ee27 100644 --- a/interface/main/ippf_export.php +++ b/interface/main/ippf_export.php @@ -72,6 +72,8 @@ function xmlTime($str, $default='9999-12-31T23:59:59') { $str = substr($str, 0, 10) . 'T' . substr($str, 11); else $str .= 'T00:00:00'; + // Per discussion with Daniel 2009-05-12, replace zero day or month with 01. + $str = preg_replace('/-00/', '-01', $str); return $str; } -- 2.11.4.GIT