summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-04-08 00:02:59 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-04-08 00:25:35 +0200
commit187ce77498f8538fa2d42e28f1690c18210a084a (patch)
tree4842824c27ea35bd10fb8a223add2006c6082777
parent149bdc49651968f9d3f2bbbfec67ed16e43e2019 (diff)
downloadgnutls-187ce77498f8538fa2d42e28f1690c18210a084a.tar.gz
Do not use %e in strftime. Use %d instead which is identically available in windows as well.
Based on patch by LRN.
-rw-r--r--lib/openpgp/output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/openpgp/output.c b/lib/openpgp/output.c
index b832253fb7..ab146e5d7d 100644
--- a/lib/openpgp/output.c
+++ b/lib/openpgp/output.c
@@ -187,7 +187,7 @@ print_key_times (gnutls_buffer_st * str, gnutls_openpgp_crt_t cert, int idx)
if (gmtime_r (&tim, &t) == NULL)
addf (str, "error: gmtime_r (%ld)\n", (unsigned long) tim);
- else if (strftime (s, max, "%a %b %e %H:%M:%S UTC %Y", &t) == 0)
+ else if (strftime (s, max, "%a %b %d %H:%M:%S UTC %Y", &t) == 0)
addf (str, "error: strftime (%ld)\n", (unsigned long) tim);
else
addf (str, _("\t\tCreation: %s\n"), s);
@@ -210,7 +210,7 @@ print_key_times (gnutls_buffer_st * str, gnutls_openpgp_crt_t cert, int idx)
{
if (gmtime_r (&tim, &t) == NULL)
addf (str, "error: gmtime_r (%ld)\n", (unsigned long) tim);
- else if (strftime (s, max, "%a %b %e %H:%M:%S UTC %Y", &t) == 0)
+ else if (strftime (s, max, "%a %b %d %H:%M:%S UTC %Y", &t) == 0)
addf (str, "error: strftime (%ld)\n", (unsigned long) tim);
else
addf (str, _("\t\tExpiration: %s\n"), s);