diff options
author | Simon Josefsson <simon@josefsson.org> | 2007-02-09 14:19:37 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2007-02-09 14:19:37 +0000 |
commit | 5b157cbfeee5e1173878bab20efaf78415e173a9 (patch) | |
tree | 0a7ad4cf91b04b640aabc21d821f4de16b66865b | |
parent | a509d009b67c8fe91f153647d1799b2adeb2bc97 (diff) | |
download | gnutls-5b157cbfeee5e1173878bab20efaf78415e173a9.tar.gz |
strftime %Z on mingw32 seems to not understand that gmtime was used
and that the time given is in UTC. Just hard code it to UTC.
-rw-r--r-- | lib/x509/output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/x509/output.c b/lib/x509/output.c index 90a94fc181..e8d8127915 100644 --- a/lib/x509/output.c +++ b/lib/x509/output.c @@ -524,7 +524,7 @@ print_cert (gnutls_string * str, gnutls_x509_crt_t cert, int notsigned) if (gmtime_r (&tim, &t) == NULL) addf (str, "error: gmtime_r (%d)\n", t); - else if (strftime (s, max, "%a %b %e %H:%M:%S %Z %Y", &t) == 0) + else if (strftime (s, max, "%a %b %e %H:%M:%S UTC %Y", &t) == 0) addf (str, "error: strftime (%d)\n", t); else addf (str, "\t\tNot Before: %s\n", s); @@ -538,7 +538,7 @@ print_cert (gnutls_string * str, gnutls_x509_crt_t cert, int notsigned) if (gmtime_r (&tim, &t) == NULL) addf (str, "error: gmtime_r (%d)\n", t); - else if (strftime (s, max, "%a %b %e %H:%M:%S %Z %Y", &t) == 0) + else if (strftime (s, max, "%a %b %e %H:%M:%S UTC %Y", &t) == 0) addf (str, "error: strftime (%d)\n", t); else addf (str, "\t\tNot After: %s\n", s); |