Description

After (automatic) change of server time on Windows XP Pro from summer to winter time displaying diffs does no longer work. Instedad of showing the diff, a message is displayed indicating that no differences were found. In the message both timestamps are always the same:

No differences found!}}}

Another (related) problem:

Example

Since this Wiki does not show the bug an example cannot be given.

Details

MoinMoin Version

1.2.3

OS and Version

Win XP Pro

Python Version

Python 2.3.4

Server Setup and Version

Apache 2.0.48 with mod_python 3.1.2b
Apache 2.0.48 with CGI

CGI and mod_python both show the error.

Workaround

The problem is in wikiaction.py:

This patch solves the problem for me :-) . With the patch only the time from the backup filename is used.

--- c:/p-lang/python23/lib/site-packages/moinmoin/wikiaction.py *************** *** 246,252 ****

! date = os.path.getmtime(os.path.join(config.backup_dir, oldpage))

--- 246,252


! date = int(oldpage.split('.')[1])

*************** *** 258,264 ****

! first_olddate = os.path.getmtime(first_oldpage)

--- 258,264


! first_olddate = oldversions[0].split('.')[1]

}}}

Discussion

Versioning will completely change soon in 1.3devel. So this might get fixed as a side effect.

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/VersioningBreaksAfterTimeChange (last edited 2007-10-29 19:19:52 by localhost)