diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2001-08-23 09:20:03 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2001-08-23 09:20:03 +0000 |
commit | 56d4c242e1a90d867046b69fede702d712d5120a (patch) | |
tree | 883f5467a0b133a0df55ff37d9b037e2a5fa0d4e /graphics/gtksee | |
parent | 31814ab95abd4a099b122c3878b3e355bd1dc21b (diff) | |
download | ports-56d4c242e1a90d867046b69fede702d712d5120a.tar.gz ports-56d4c242e1a90d867046b69fede702d712d5120a.zip |
Fix a minor Y2K problem in displaying dates.
Obtained from: OpenBSD
Approved by: maintainer
Notes
Notes:
svn path=/head/; revision=46695
Diffstat (limited to 'graphics/gtksee')
-rw-r--r-- | graphics/gtksee/Makefile | 1 | ||||
-rw-r--r-- | graphics/gtksee/files/patch-ab | 20 |
2 files changed, 21 insertions, 0 deletions
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); |