From 0f8a086d1849fdc4b458394d9824f7f39295b557 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Wed, 2 Jun 1999 19:49:59 +0000 Subject: Use %H instead of %k, as %k is a GNU extension, not available in other 1999-06-02 Miguel de Icaza * view-utils.c (nicetime): Use %H instead of %k, as %k is a GNU extension, not available in other systems. svn path=/trunk/; revision=966 --- calendar/ChangeLog | 5 +++++ calendar/gui/view-utils.c | 4 ++-- calendar/view-utils.c | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 3093db0fd7..4eaa72306b 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +1999-06-02 Miguel de Icaza + + * view-utils.c (nicetime): Use %H instead of %k, as %k is a GNU + extension, not available in other systems. + 1999-06-01 Miguel de Icaza * calobj.c (daynumberlist): Work around broken software that diff --git a/calendar/gui/view-utils.c b/calendar/gui/view-utils.c index 6287b1cbfe..8cb7893377 100644 --- a/calendar/gui/view-utils.c +++ b/calendar/gui/view-utils.c @@ -25,9 +25,9 @@ nicetime (struct tm *tm) strftime (buf, sizeof (buf), "%l%p", tm); } else { if (tm->tm_min) - strftime (buf, sizeof (buf), "%k:%M", tm); + strftime (buf, sizeof (buf), "%H:%M", tm); else - strftime (buf, sizeof (buf), "%k", tm); + strftime (buf, sizeof (buf), "%H", tm); } while (*p == ' ') p++; diff --git a/calendar/view-utils.c b/calendar/view-utils.c index 6287b1cbfe..8cb7893377 100644 --- a/calendar/view-utils.c +++ b/calendar/view-utils.c @@ -25,9 +25,9 @@ nicetime (struct tm *tm) strftime (buf, sizeof (buf), "%l%p", tm); } else { if (tm->tm_min) - strftime (buf, sizeof (buf), "%k:%M", tm); + strftime (buf, sizeof (buf), "%H:%M", tm); else - strftime (buf, sizeof (buf), "%k", tm); + strftime (buf, sizeof (buf), "%H", tm); } while (*p == ' ') p++; -- cgit