Changeset 274 for trunk/lib/Date.cc


Ignore:
Timestamp:
May 2, 2007, 11:05:55 AM (14 years ago)
Author:
Peter Johansson
Message:

support for Trac. Fixes #125. Also added a config file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Date.cc

    r235 r274  
    208208          else
    209209            ss << timeinfo->tm_wday;
    210         else if (*i == 'y')
    211           ss << timeinfo->tm_year % 100;
     210        else if (*i == 'y') {
     211          int y(timeinfo->tm_year % 100);
     212          if (y<10)
     213            ss << "0";
     214          ss << y;
     215        }
    212216        else if (*i == 'Y')
    213217          ss << timeinfo->tm_year+1900;
Note: See TracChangeset for help on using the changeset viewer.