fix a minor y2k bug in displaying file dates; from Joshua Stein <jcs@rt.fm>
This commit is contained in:
parent
5828099a46
commit
250241a3dd
21
graphics/gtksee/patches/patch-src_gtksee_c
Normal file
21
graphics/gtksee/patches/patch-src_gtksee_c
Normal file
@ -0,0 +1,21 @@
|
||||
# $OpenBSD: patch-src_gtksee_c,v 1.1 2001/05/06 21:37:42 naddy Exp $
|
||||
--- 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);
|
Loading…
Reference in New Issue
Block a user