From 56d4c242e1a90d867046b69fede702d712d5120a Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Thu, 23 Aug 2001 09:20:03 +0000 Subject: Fix a minor Y2K problem in displaying dates. Obtained from: OpenBSD Approved by: maintainer --- graphics/gtksee/Makefile | 1 + graphics/gtksee/files/patch-ab | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 graphics/gtksee/files/patch-ab (limited to 'graphics') diff --git a/graphics/gtksee/Makefile b/graphics/gtksee/Makefile index fd59f751dccc..b4ed056c0686 100644 --- a/graphics/gtksee/Makefile +++ b/graphics/gtksee/Makefile @@ -7,6 +7,7 @@ PORTNAME= gtksee PORTVERSION= 0.5.0 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= http://www.linux.tucows.com/files/x11/graphics/ \ http://www.physik.TU-Berlin.DE/~ibex/ports/distfiles/ diff --git a/graphics/gtksee/files/patch-ab b/graphics/gtksee/files/patch-ab new file mode 100644 index 000000000000..2918ea5b22f9 --- /dev/null +++ b/graphics/gtksee/files/patch-ab @@ -0,0 +1,20 @@ +--- src/gtksee.c.orig Sat Sep 25 01:27:40 1999 ++++ src/gtksee.c Sun May 6 13:25:31 2001 +@@ -322,13 +322,13 @@ + } + if (hour == 0) + { +- sprintf(buffer, "%s, %02i/%02i/%02i 12:%02i AM", +- text, time->tm_year, time->tm_mon+1, time->tm_mday, ++ sprintf(buffer, "%s, %04i/%02i/%02i 12:%02i AM", ++ text, time->tm_year + 1900, time->tm_mon+1, time->tm_mday, + time->tm_min); + } else + { +- sprintf(buffer, "%s, %02i/%02i/%02i %02i:%02i %s", +- text, time->tm_year, time->tm_mon+1, time->tm_mday, ++ sprintf(buffer, "%s, %04i/%02i/%02i %02i:%02i %s", ++ text, time->tm_year + 1900, time->tm_mon+1, time->tm_mday, + hour, time->tm_min, (time->tm_hour<12)?"AM":"PM"); + } + g_free(text); -- cgit v1.2.3