comparison src/undo.c @ 2689:26fb122355d4 v7.3.107

updated for version 7.3.107 Problem: Year number for :undolist can be confused with month or day. Solution: Change "%y" to "%Y".
author Bram Moolenaar <bram@vim.org>
date Sat, 22 Jan 2011 21:25:11 +0100
parents 862d920800b1
children 972bd3fca556
comparison
equal deleted inserted replaced
2688:f016c3708ae3 2689:26fb122355d4
2882 else if (time(NULL) - tt < (60L * 60L * 24L * 180L)) 2882 else if (time(NULL) - tt < (60L * 60L * 24L * 180L))
2883 /* within 6 months */ 2883 /* within 6 months */
2884 (void)strftime((char *)buf, buflen, "%m/%d %H:%M:%S", curtime); 2884 (void)strftime((char *)buf, buflen, "%m/%d %H:%M:%S", curtime);
2885 else 2885 else
2886 /* long ago */ 2886 /* long ago */
2887 (void)strftime((char *)buf, buflen, "%y/%m/%d %H:%M:%S", curtime); 2887 (void)strftime((char *)buf, buflen, "%Y/%m/%d %H:%M:%S", curtime);
2888 } 2888 }
2889 else 2889 else
2890 #endif 2890 #endif
2891 vim_snprintf((char *)buf, buflen, _("%ld seconds ago"), 2891 vim_snprintf((char *)buf, buflen, _("%ld seconds ago"),
2892 (long)(time(NULL) - tt)); 2892 (long)(time(NULL) - tt));