22 lines
803 B
Plaintext
22 lines
803 B
Plaintext
# $OpenBSD: patch-src_gtksee_c,v 1.2 2002/12/28 23:25:32 pvalchev Exp $
|
|
--- src/gtksee.c.orig Sat Sep 25 00:27:40 1999
|
|
+++ src/gtksee.c Sat Dec 28 15:15:06 2002
|
|
@@ -322,13 +322,13 @@ file_selected_internal(ImageList *il)
|
|
}
|
|
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);
|