From 7cbc6908903ac7600541cd05d63f4a1aaf753d06 Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Mon, 28 Jun 2010 08:47:39 +0200 Subject: [PATCH] use date instead of gmdate, monotone's dates are already UTC --- src/IDF/Scm/Monotone.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/IDF/Scm/Monotone.php b/src/IDF/Scm/Monotone.php index 96ae9e5..4fac426 100644 --- a/src/IDF/Scm/Monotone.php +++ b/src/IDF/Scm/Monotone.php @@ -792,7 +792,7 @@ class IDF_Scm_Monotone extends IDF_Scm $dates = array(); foreach ($certs['date'] as $date) - $dates[] = gmdate('Y-m-d H:i:s', strtotime($date)); + $dates[] = date('Y-m-d H:i:s', strtotime($date)); $file['date'] = implode(', ', $dates); $file['log'] = implode("\n---\n", $certs['changelog']); } @@ -951,7 +951,7 @@ class IDF_Scm_Monotone extends IDF_Scm $dates = array(); foreach ($certs['date'] as $date) - $dates[] = gmdate('Y-m-d H:i:s', strtotime($date)); + $dates[] = date('Y-m-d H:i:s', strtotime($date)); $file['date'] = implode(', ', $dates); $file['log'] = implode("\n---\n", $certs['changelog']); } @@ -1028,7 +1028,7 @@ class IDF_Scm_Monotone extends IDF_Scm $dates = array(); foreach ($certs['date'] as $date) - $dates[] = gmdate('Y-m-d H:i:s', strtotime($date)); + $dates[] = date('Y-m-d H:i:s', strtotime($date)); $res['date'] = implode(', ', $dates); $res['title'] = implode("\n---\n", $certs['changelog']); @@ -1106,7 +1106,7 @@ class IDF_Scm_Monotone extends IDF_Scm $dates = array(); foreach ($certs['date'] as $date) - $dates[] = gmdate('Y-m-d H:i:s', strtotime($date)); + $dates[] = date('Y-m-d H:i:s', strtotime($date)); $log['date'] = implode(', ', $dates); $combinedChangelog = implode("\n---\n", $certs['changelog']);