aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fm
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2000-09-03 00:02:31 +0800
committervanilla <vanilla@FreeBSD.org>2000-09-03 00:02:31 +0800
commit383b81318aa38733365179f1a9315435eb66d5ab (patch)
treef8050c782153d58a8073ba7ac8050eaf652fb45c /x11-fm
parent1ffe6a13e6cd788b5df87f46dde04fe2df7252f5 (diff)
downloadfreebsd-ports-gnome-383b81318aa38733365179f1a9315435eb66d5ab.tar.gz
freebsd-ports-gnome-383b81318aa38733365179f1a9315435eb66d5ab.tar.zst
freebsd-ports-gnome-383b81318aa38733365179f1a9315435eb66d5ab.zip
Add a patch for Y2K.
Submitted by: Jim Dutton <jimd@dutton3.it.siu.edu>
Diffstat (limited to 'x11-fm')
-rw-r--r--x11-fm/filerunner/files/patch-ac17
1 files changed, 17 insertions, 0 deletions
diff --git a/x11-fm/filerunner/files/patch-ac b/x11-fm/filerunner/files/patch-ac
new file mode 100644
index 000000000000..e3992272dccb
--- /dev/null
+++ b/x11-fm/filerunner/files/patch-ac
@@ -0,0 +1,17 @@
+--- ext.c.orig Wed Jun 10 05:55:32 1998
++++ ext.c Sat Sep 2 23:56:45 2000
+@@ -123,11 +123,12 @@
+ HANDLE2(*p != '\0', "Error converting arg to int");
+
+ time_s = localtime(&t);
++ time_s->tm_year = 1900 + time_s->tm_year;
+ if (dateformat)
+- sprintf(interp->result, "%02d%02d%02d %02d:%02d:%02d", time_s->tm_mday, time_s->tm_mon+1,
++ sprintf(interp->result, "%02d%02d%04d %02d:%02d:%02d", time_s->tm_mday, time_s->tm_mon+1,
+ time_s->tm_year, time_s->tm_hour, time_s->tm_min, time_s->tm_sec);
+ else
+- sprintf(interp->result, "%02d%02d%02d %02d:%02d:%02d", time_s->tm_year, time_s->tm_mon+1,
++ sprintf(interp->result, "%04d%02d%02d %02d:%02d:%02d", time_s->tm_year, time_s->tm_mon+1,
+ time_s->tm_mday, time_s->tm_hour, time_s->tm_min, time_s->tm_sec);
+ return TCL_OK;
+ }