diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-04-08 00:02:59 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-04-08 00:03:03 +0200 |
commit | b5028e7963fb39d4ec785804f490d740e03193c1 (patch) | |
tree | c3019ac84786310031e6f5ec2ac8397b211305af /lib/openpgp | |
parent | f783a67348ea424c285a169e34ed65ad35932ed0 (diff) | |
download | gnutls-b5028e7963fb39d4ec785804f490d740e03193c1.tar.gz |
Do not use %e in strftime. Use %d instead which is identically available in windows as well.
Based on patch by LRN.
Diffstat (limited to 'lib/openpgp')
-rw-r--r-- | lib/openpgp/output.c | 4 |
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); |