mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-07-30 16:26:33 +08:00
revert change to gmtime arguments int ssl_context_info.c
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
This commit is contained in:
parent
7e8e438fce
commit
6efe52473c
@ -277,7 +277,7 @@ static void print_time(const uint64_t *time)
|
||||
{
|
||||
#if defined(MBEDTLS_HAVE_TIME)
|
||||
char buf[20];
|
||||
struct tm *t = gmtime((mbedtls_time_t *) time);
|
||||
struct tm *t = gmtime((time_t *) time);
|
||||
static const char format[] = "%Y-%m-%d %H:%M:%S";
|
||||
if (NULL != t) {
|
||||
strftime(buf, sizeof(buf), format, t);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user