]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Do not use %e in strftime. Use %d instead which is identically available in windows...
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 7 Apr 2011 22:02:59 +0000 (00:02 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 7 Apr 2011 22:03:03 +0000 (00:03 +0200)
Based on patch by LRN.

lib/openpgp/output.c

index b832253fb752d9f776694654cac0b68782549543..ab146e5d7d2f089bb3eecbf09a7d19b2fc6fd6cc 100644 (file)
@@ -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);