From 852f0f22df8ef34ac8ef5a7f0c729a2b4be8ae79 Mon Sep 17 00:00:00 2001 From: heck Date: Tue, 1 Mar 2022 21:56:32 +0100 Subject: [PATCH] Fix:: Windows portability - manual merge of PR#15 from thomas (due to conflicts) --- src/cxx/jniutils.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cxx/jniutils.cc b/src/cxx/jniutils.cc index 26d1536..bad064c 100644 --- a/src/cxx/jniutils.cc +++ b/src/cxx/jniutils.cc @@ -443,7 +443,7 @@ timestamp *to_timestamp(JNIEnv *env, if (t) { time_t clock = t / 1000; - gmtime_r(&clock, ts); + gmtime_r(&clock, (struct tm*)ts); //LOGD("/* Seconds (0-60) */ TO :%d", ts->tm_sec); //LOGD("/* Minutes (0-59) */ :%d", ts->tm_min);