aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-11-11 13:44:39 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-11-11 13:44:47 -0500
commit6611f3a2d9eda262a07bb506b204e8bbf0728c38 (patch)
treefd8f6234a0669793b18d9a2b88eb6112802bec09
parent72a2fa9441dc37bc2a6ce6337b940271a66b6ec1 (diff)
downloadikiwiki-6611f3a2d9eda262a07bb506b204e8bbf0728c38.tar
ikiwiki-6611f3a2d9eda262a07bb506b204e8bbf0728c38.tar.gz
bzr: Fix dates for recentchanges.
-rw-r--r--IkiWiki/Plugin/bzr.pm2
-rw-r--r--debian/changelog1
-rw-r--r--doc/bugs/bzr_RecentChanges_dates_start_from_1969.mdwn4
3 files changed, 6 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/bzr.pm b/IkiWiki/Plugin/bzr.pm
index 101e91b93..1054f5b3e 100644
--- a/IkiWiki/Plugin/bzr.pm
+++ b/IkiWiki/Plugin/bzr.pm
@@ -246,7 +246,7 @@ sub rcs_recentchanges ($) { #{{{
rev => $info->{"revno"},
user => $user,
committype => "bzr",
- when => time - str2time($info->{"timestamp"}),
+ when => str2time($info->{"timestamp"}),
message => [@message],
pages => [@pages],
};
diff --git a/debian/changelog b/debian/changelog
index cc277beb3..dfc5de2d4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,7 @@ ikiwiki (2.69) UNRELEASED; urgency=low
was earlier added to edit links.
* tag: Normalize tagbase so leading/trailing slashes in it don't break
things.
+ * bzr: Fix dates for recentchanges.
-- Joey Hess <joeyh@debian.org> Thu, 06 Nov 2008 16:01:00 -0500
diff --git a/doc/bugs/bzr_RecentChanges_dates_start_from_1969.mdwn b/doc/bugs/bzr_RecentChanges_dates_start_from_1969.mdwn
index 5c3d1bbd2..fa6e45b47 100644
--- a/doc/bugs/bzr_RecentChanges_dates_start_from_1969.mdwn
+++ b/doc/bugs/bzr_RecentChanges_dates_start_from_1969.mdwn
@@ -10,3 +10,7 @@ to
` when => str2time($info->{"timestamp"}),`
fixed this for me.
+
+> Weird, I wonder why it was written to return an absolute time like that
+> in the first place? Can't have ever been right. Fixed, thanks. --[[Joey]]
+> [[done]]