[wing] removed subtraction of time bias from get_time_from_filetime()



commit 851e7284369ee05549b751779a2d9bd582bc76b6
Author: Fabio Carignano <fcarigna amazon it>
Date:   Thu Jun 23 10:26:48 2022 +0200

    removed subtraction of time bias from get_time_from_filetime()

 wing/wingutils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/wing/wingutils.c b/wing/wingutils.c
index 974f118..00b4197 100644
--- a/wing/wingutils.c
+++ b/wing/wingutils.c
@@ -103,7 +103,7 @@ get_time_from_filetime (const FILETIME *ft)
 {
   gint64 t1 = (gint64)ft->dwHighDateTime << 32 | ft->dwLowDateTime;
 
-  return t1 / 10 - 11644473600000000; /* Jan 1, 1601 */
+  return t1 / 10;
 }
 
 gboolean


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]