Fixed age display time

azbok - December 11, 2007 - 04:18
Project:Subversion
Version:5.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

This patch gets the date and time from the output of subversion and saves it for display. In the original code, $logEntry refers to an uninitialized variable. Hmm, these patches are building up, at some point in time I'll just post the complete updated files for convenience.

In subversion_ls_parser.php

Original

        $time = $logEntry['data'];
        list($time) = explode('.', $time);
        $t = strtotime($time);

New

        list($date, $time, $microseconds) = split('[T.]', $this->data);
        $t = strtotime("$date $time");

#1

halkeye - January 21, 2008 - 05:49
Status:needs review» fixed

#2

Anonymous (not verified) - February 4, 2008 - 05:52
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.