Ticket #11132: datetime_safe.patch

File datetime_safe.patch, 329 bytes (added by wardi, 16 years ago)
  • datetime_safe.py

    old new  
    8383            sites.append(site)
    8484
    8585    s = s1
    86     syear = "%4d" % (dt.year,)
     86    syear = "%04d" % (dt.year,)
    8787    for site in sites:
    8888        s = s[:site] + syear + s[site+4:]
    8989    return s
Back to Top