Tags:
create new tag
, view all tags

Bug: The date when a topic moved does not appear, "gmtime" appears instead

Found a bug in TWiki20040320beta that is still in 20040513alpha : in function "renderMoved" (lib/TWiki.pm in beta ; lib/TWiki/Render.pm in alpha) you should replace $date = formatTime( $date, , "gmtime" ); with $date = formatTime( $date, '', "gmtime" );

The two consecuting comma are understood as if they were a unique, therefore gmtime is displayed instead of the date.

This bug is also mentioned in MinorBugs.

Environment

TWiki version: TWikiBetaRelease, TWikiAlphaRelease
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: MacOS 10.3.3
Web server:  
Perl version: 5.8.1, vendor provided
Client OS:  
Web Browser:  

NB: this bug is independent of the environment.

-- LouisGranboulan - 26 May 2004

Follow up

Fix record

Thanks Louis. This is now in TWikiAlphaRelease. (Not marked as CairoRelease since this is a recently introduced bug)

Index: Render.pm
===================================================================
--- Render.pm   (revision 1527)
+++ Render.pm   (working copy)
@@ -182,7 +182,7 @@
         my $by   = $moved{"by"};
         $by = TWiki::userToWikiName( $by );
         my $date = $moved{"date"};
-        $date = TWiki::formatTime( $date, , "gmtime" );
+        $date = TWiki::formatTime( $date, "", "gmtime" );

         # Only allow put back if current web and topic match stored information
         my $putBack = "";

-- PeterThoeny - 30 May 2004

Topic revision: r2 - 2004-05-30 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.