Use UTC to heck certificate validity
diff --git a/library/x509parse.c b/library/x509parse.c
index 085a3cf..f3e7831 100644
--- a/library/x509parse.c
+++ b/library/x509parse.c
@@ -3083,7 +3083,7 @@
 #if defined(_WIN32)
     SYSTEMTIME st;
 
-    GetLocalTime(&st);
+    GetSystemTime(&st);
 
     now->year = st.wYear;
     now->mon = st.wMonth;
@@ -3096,7 +3096,7 @@
     time_t tt;
 
     tt = time( NULL );
-    localtime_r( &tt, &lt );
+    gmtime_r( &tt, &lt );
 
     now->year = lt.tm_year + 1900;
     now->mon = lt.tm_mon + 1;