Mercurial > vim
changeset 3751:b7eea2409507 v7.3.634
updated for version 7.3.634
Problem: Month/Day format for undo is confusing. (Marcin Szamotulski)
Solution: Always use Year/Month/Day, should work for everybody.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 23 Aug 2012 12:59:02 +0200 |
parents | 536aa8b0c934 |
children | e8eff39df4f4 |
files | src/undo.c src/version.c |
diffstat | 2 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/undo.c +++ b/src/undo.c @@ -2880,11 +2880,8 @@ u_add_time(buf, buflen, tt) if (time(NULL) - tt < (60L * 60L * 12L)) /* within 12 hours */ (void)strftime((char *)buf, buflen, "%H:%M:%S", curtime); - else if (time(NULL) - tt < (60L * 60L * 24L * 180L)) - /* within 6 months */ - (void)strftime((char *)buf, buflen, "%m/%d %H:%M:%S", curtime); else - /* long ago */ + /* longer ago */ (void)strftime((char *)buf, buflen, "%Y/%m/%d %H:%M:%S", curtime); } else