aboutsummaryrefslogtreecommitdiff
path: root/views/default/output/friendlytime.php
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2013-02-21 00:52:32 +0100
committerSem <sembrestels@riseup.net>2013-02-21 00:52:32 +0100
commit9cffddf0969ee63002c2a6c3574bdc796849e9ee (patch)
treefe54c11998ad4bfdbb741f8605c0c245ad35b2da /views/default/output/friendlytime.php
parentc6bf8d8ab9463722da4e1e0323c3383e08b8924e (diff)
downloadelgg-9cffddf0969ee63002c2a6c3574bdc796849e9ee.tar.gz
elgg-9cffddf0969ee63002c2a6c3574bdc796849e9ee.tar.bz2
Using ISO 8601 in time datetime attribute.
Diffstat (limited to 'views/default/output/friendlytime.php')
-rw-r--r--views/default/output/friendlytime.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/default/output/friendlytime.php b/views/default/output/friendlytime.php
index c9c74e880..b752b74ce 100644
--- a/views/default/output/friendlytime.php
+++ b/views/default/output/friendlytime.php
@@ -8,6 +8,6 @@
$friendly_time = elgg_get_friendly_time($vars['time']);
$timestamp = htmlentities(date(elgg_echo('friendlytime:date_format'), $vars['time']));
-$datetime = htmlentities(date("Y-m-d h:m", $vars['time']));
+$datetime = htmlentities(date("c", $vars['time']));
echo "<time title=\"$timestamp\" datetime=\"$datetime\" class=\"timestamp\">$friendly_time</time>";