]> git.pld-linux.org Git - packages/elinks.git/commitdiff
- justify the date field in directory listings
authorwitekfl <witekfl@pld-linux.org>
Tue, 19 Jun 2007 16:07:41 +0000 (16:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    elinks-justify_date.patch -> 1.1

elinks-justify_date.patch [new file with mode: 0644]

diff --git a/elinks-justify_date.patch b/elinks-justify_date.patch
new file mode 100644 (file)
index 0000000..cfa29fd
--- /dev/null
@@ -0,0 +1,45 @@
+--- elinks-0.11.3/src/util/file.c.old  2007-06-19 09:12:03.000000000 +0200
++++ elinks-0.11.3/src/util/file.c      2007-06-19 09:12:47.000000000 +0200
+@@ -461,16 +461,16 @@
+               if (current_time > when + 6L * 30L * 24L * 60L * 60L
+                   || current_time < when - 60L * 60L)
+-                      fmt = "%b %e  %Y";
++                      fmt = "%4b %e  %Y";
+               else
+-                      fmt = "%b %e %H:%M";
++                      fmt = "%4b %e %H:%M";
+               add_date_to_string(string, fmt, &when);
+               add_char_to_string(string, ' ');
+               return;
+       }
+ #endif
+-      add_to_string(string, "             ");
++      add_to_string(string, "              ");
+ }
+--- elinks-0.11.3/src/protocol/ftp/ftp.c.old   2007-06-19 09:13:09.000000000 +0200
++++ elinks-0.11.3/src/protocol/ftp/ftp.c       2007-06-19 09:13:52.000000000 +0200
+@@ -1157,9 +1157,9 @@
+               if (current_time > when + 6L * 30L * 24L * 60L * 60L
+                   || current_time < when - 60L * 60L)
+-                      fmt = "%b %e  %Y";
++                      fmt = "%4b %e  %Y";
+               else
+-                      fmt = "%b %e %H:%M";
++                      fmt = "%4b %e %H:%M";
+               wr = strftime(date, sizeof(date), fmt, when_tm);
+@@ -1168,7 +1168,7 @@
+               add_to_string(&string, date);
+       } else
+ #endif
+-      add_to_string(&string, "            ");
++      add_to_string(&string, "             ");
+       add_char_to_string(&string, ' ');
This page took 0.142436 seconds and 4 git commands to generate.