[Box Backup-dev] COMMIT r434 - box/chris/win32/vc2005-compile-fixes/lib/win32

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Sun Feb 12 00:45:21 GMT 2006


Author: chris
Date: 2006-02-12 00:45:20 +0000 (Sun, 12 Feb 2006)
New Revision: 434

Modified:
   box/chris/win32/vc2005-compile-fixes/lib/win32/emu.h
Log:
* emu.h
- Correct for the fact that mktime() expects input to be in local time, but
  time() and FileTimeToSystemTime() use UTC/GMT


Modified: box/chris/win32/vc2005-compile-fixes/lib/win32/emu.h
===================================================================
--- box/chris/win32/vc2005-compile-fixes/lib/win32/emu.h	2006-02-12 00:43:27 UTC (rev 433)
+++ box/chris/win32/vc2005-compile-fixes/lib/win32/emu.h	2006-02-12 00:45:20 UTC (rev 434)
@@ -440,7 +440,7 @@
 	// timeinfo.tm_yday = ...;
 	timeinfo.tm_year = stUTC.wYear - 1900;
 
-	time_t retVal = mktime(&timeinfo);
+	time_t retVal = mktime(&timeinfo) - _timezone;
 	return retVal;
 }
 




More information about the Boxbackup-dev mailing list