Ticket #11132: datetime_safe.patch
File datetime_safe.patch, 329 bytes (added by , 15 years ago) |
---|
-
datetime_safe.py
old new 83 83 sites.append(site) 84 84 85 85 s = s1 86 syear = "% 4d" % (dt.year,)86 syear = "%04d" % (dt.year,) 87 87 for site in sites: 88 88 s = s[:site] + syear + s[site+4:] 89 89 return s