]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #4050 using ISO 8601 standard for dates
authorcash <cash.costello@gmail.com>
Sat, 5 Nov 2011 20:28:32 +0000 (16:28 -0400)
committercash <cash.costello@gmail.com>
Sat, 5 Nov 2011 20:28:32 +0000 (16:28 -0400)
views/default/input/date.php
views/default/output/date.php

index ceeb2105ca3f71574120823a9b35d50fdb9f3747..828ce55207c81b2d564c99796b614fbed31f2c8e 100644 (file)
@@ -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);
index 7c98dddc952fd421186fc23fb52511323917ae97..1644a348087c1efd4acc1a0f24b8ebf91d925f54 100644 (file)
@@ -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'];