freebsd-ports/graphics/gtksee/files/patch-ab
Kris Kennaway 56d4c242e1 Fix a minor Y2K problem in displaying dates.
Obtained from:	OpenBSD
Approved by:	maintainer
2001-08-23 09:20:03 +00:00

21 lines
693 B
Plaintext

--- 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);