summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IkiWiki/Plugin/relativedate.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/relativedate.pm b/IkiWiki/Plugin/relativedate.pm
index a918889d2..0c9426dda 100644
--- a/IkiWiki/Plugin/relativedate.pm
+++ b/IkiWiki/Plugin/relativedate.pm
@@ -47,9 +47,10 @@ sub IkiWiki::displaytime ($;$) { #{{{
my $format=shift;
# This needs to be in a form that can be parsed by javascript.
- # Being fairly human readable is also nice, as it will be exposed as the title
- # if javascript is not available.
- my $gmtime=decode_utf8(POSIX::strftime("%a, %d %b %Y %H:%M:%S %z", gmtime($time)));
+ # Being fairly human readable is also nice, as it will be exposed
+ # as the title if javascript is not available.
+ my $gmtime=decode_utf8(POSIX::strftime("%a, %d %b %Y %H:%M:%S %z",
+ localtime($time)));
return '<span class="date" title="'.$gmtime.'">'.
IkiWiki::formattime($time, $format).'</span>';
h/diff/?h=master&id=fd54908da2b05c526dd3bee9b6dcd093214a220d'>Diffstat (limited to 'tags/57/74/20161225160226.C147D6F16@xayide.jones.dk')
-rw-r--r--tags/57/74/20161225160226.C147D6F16@xayide.jones.dk/inbox0
-rw-r--r--tags/57/74/20161225160226.C147D6F16@xayide.jones.dk/old0
2 files changed, 0 insertions, 0 deletions