Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-892

Incorrect Time Stamp for Command Line Client list operation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • all
    • 0.15
    • src
    • Mac OS X

    Description

      This problem was found on Mac OSX 10.2 however I do not believe it is specific to 
      the Mac.
      
      When the command line client is issued the following command:
      svn list -v file:///Users/raymond/Unix/svnrepos
      Result:
      _       1  raymond        0 Sep 04 20:09 TestProject/
      
      However this is not the correct time stamp for this file, is should be:
      Sep 04 20:10
      
      When ever I perform the list operation with the verbose flag the minute field 
      always contains the month in numeric form. September being the 9th month.
      
      After investigating the source for the command line client I found the problem in 
      "ls-cmd.c" file. The following code converts the time structure into a date string.
      
      apr_err = apr_strftime (timestr, &size, sizeof (timestr),
                                          "%b %d %H:%m", &exp_time);
      
      I looked up the man page for strftime and found that %m writes the month and 
      %M writes minutes. I beleve the %m should be changed to a %M.
      

      Original issue reported by raymccrae

      Attachments

        Activity

          People

            Unassigned Unassigned
            subversion-importer Subversion Importer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: