Ticket #12524: safe_year.diff
File safe_year.diff, 415 bytes (added by , 15 years ago) |
---|
-
django/utils/datetime_safe.py
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