aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/view-utils.c4
-rw-r--r--calendar/view-utils.c4
3 files changed, 9 insertions, 4 deletions
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 <miguel@nuclecu.unam.mx>
+
+ * 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 <miguel@nuclecu.unam.mx>
* 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++;