Changeset 224 for trunk


Ignore:
Timestamp:
Mar 11, 2007, 1:36:03 AM (15 years ago)
Author:
Peter Johansson
Message:

Hopefully this solves the issue refs #105

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/html_utility.cc

    r223 r224  
    269269    print_header(os, dir, 0, "main", "index.html");
    270270    time_t first = str2time(commit_dates[0]);
     271    std::string first_date = asctime(gmtime(&first));
    271272    time_t last = str2time(commit_dates.back());
     273    std::string last_date = asctime(gmtime(&last));
    272274   
    273275    u_int years = 0;
     
    277279    time_t now = time(NULL);
    278280    tm* timeinfo = gmtime(&now);
     281    std::string now_date = asctime(timeinfo);
    279282    while (difftime(now,first)>0){
    280283      --timeinfo->tm_year;
     
    312315       << "</th></tr><thead>\n"
    313316       << "<tr><td>First Revision:</td><td>"
    314        << asctime(gmtime(&first)) << "</td></tr>\n"
     317       << first_date << "</td></tr>\n"
    315318       << "<tr><td>Latest Revision:</td><td>"
    316        << asctime(gmtime(&last)) << "</td></tr>\n"
     319       << last_date << "</td></tr>\n"
    317320       << "<tr><td>Report Generated:</td><td>"
    318        << asctime(gmtime(&now)) << "</td></tr>\n"
     321       <<  now_date << "</td></tr>\n"
    319322       << "<tr><td>Repository Age:</td><td>";
    320323    if (years){
Note: See TracChangeset for help on using the changeset viewer.