]> git.pld-linux.org Git - packages/elinks.git/blame - elinks-justify_date.patch
- date format is locale-dependent - so allow to localize it
[packages/elinks.git] / elinks-justify_date.patch
CommitLineData
358afe8b 1--- elinks-0.11.3/src/util/file.c.old 2007-06-19 09:12:03.000000000 +0200
2+++ elinks-0.11.3/src/util/file.c 2007-06-19 09:12:47.000000000 +0200
3@@ -461,16 +461,16 @@
4
5 if (current_time > when + 6L * 30L * 24L * 60L * 60L
6 || current_time < when - 60L * 60L)
7- fmt = "%b %e %Y";
8+ fmt = "%4b %e %Y";
9 else
10- fmt = "%b %e %H:%M";
11+ fmt = "%4b %e %H:%M";
12
13 add_date_to_string(string, fmt, &when);
14 add_char_to_string(string, ' ');
15 return;
16 }
17 #endif
18- add_to_string(string, " ");
19+ add_to_string(string, " ");
20 }
21
22
23--- elinks-0.11.3/src/protocol/ftp/ftp.c.old 2007-06-19 09:13:09.000000000 +0200
24+++ elinks-0.11.3/src/protocol/ftp/ftp.c 2007-06-19 09:13:52.000000000 +0200
25@@ -1157,9 +1157,9 @@
26
27 if (current_time > when + 6L * 30L * 24L * 60L * 60L
28 || current_time < when - 60L * 60L)
29- fmt = "%b %e %Y";
30+ fmt = "%4b %e %Y";
31 else
32- fmt = "%b %e %H:%M";
33+ fmt = "%4b %e %H:%M";
34
35 wr = strftime(date, sizeof(date), fmt, when_tm);
36
37@@ -1168,7 +1168,7 @@
38 add_to_string(&string, date);
39 } else
40 #endif
41- add_to_string(&string, " ");
42+ add_to_string(&string, " ");
43
44 add_char_to_string(&string, ' ');
45
This page took 0.121714 seconds and 4 git commands to generate.