bzr: Fix dates for recentchanges.
authorJoey Hess <joey@kodama.kitenet.net>
Tue, 11 Nov 2008 18:44:39 +0000 (13:44 -0500)
committerJoey Hess <joey@kodama.kitenet.net>
Tue, 11 Nov 2008 18:44:47 +0000 (13:44 -0500)
IkiWiki/Plugin/bzr.pm
debian/changelog
doc/bugs/bzr_RecentChanges_dates_start_from_1969.mdwn

index 101e91b930836126f9ef4a00b6a722af42cf5c50..1054f5b3e3f0be1c39e3865fc0a8b90b80ae2b74 100644 (file)
@@ -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],
                };
index cc277beb359563bc000ae10db4a3552d95cf8330..dfc5de2d44dbfe58ead483423bd4809c686456da 100644 (file)
@@ -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
 
index 5c3d1bbd2e0c03b37ea44b63ce36b012a5777631..fa6e45b47d808b4e3b14ee832788753a1d1d1520 100644 (file)
@@ -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]]