From 2cbb3a7248744d72267164d3a41bd3b2b8fc4978 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 5 Nov 2011 16:28:32 -0400 Subject: Fixes #4050 using ISO 8601 standard for dates --- views/default/input/date.php | 2 +- views/default/output/date.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/views/default/input/date.php b/views/default/input/date.php index ceeb2105c..828ce5520 100644 --- a/views/default/input/date.php +++ b/views/default/input/date.php @@ -49,7 +49,7 @@ if ($timestamp) { // convert timestamps to text for display if (is_numeric($vars['value'])) { - $vars['value'] = gmdate('Y/m/d', $vars['value']); + $vars['value'] = gmdate('Y-m-d', $vars['value']); } $attributes = elgg_format_attributes($vars); diff --git a/views/default/output/date.php b/views/default/output/date.php index 7c98dddc9..1644a3480 100644 --- a/views/default/output/date.php +++ b/views/default/output/date.php @@ -11,7 +11,7 @@ // convert timestamps to text for display if (is_numeric($vars['value'])) { - $vars['value'] = gmdate('Y/m/d', $vars['value']); + $vars['value'] = gmdate('Y-m-d', $vars['value']); } echo $vars['value']; -- cgit v1.2.3