From 5d129d75694200319f6442f34067fcf4a00ec9bd Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Sat, 7 Jul 2012 05:53:26 +0000 Subject: [PATCH] - force CRC's to be recalculated if on or before July 6 2012 --- .../sources/platform/common/platform_common.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/source/shared_lib/sources/platform/common/platform_common.cpp b/source/shared_lib/sources/platform/common/platform_common.cpp index 265624ba..87cf9ab1 100644 --- a/source/shared_lib/sources/platform/common/platform_common.cpp +++ b/source/shared_lib/sources/platform/common/platform_common.cpp @@ -658,8 +658,23 @@ pair hasCachedFileCRCValue(string crcCacheFile, uint32 &value) { fclose(fp); + struct tm future; /* as in future date */ + future.tm_sec = 0; + future.tm_min = 0; + future.tm_hour = 0; + future.tm_mday = 6; /* 1st */ + future.tm_mon = 6; /* July */ + future.tm_year = 2012 - 1900; /* 2038 in years since 1900 */ + future.tm_isdst = 0; /* Daylight Saving not in affect (UTC) */ + #ifdef _BSD_SOURCE + future.tm_zone = "UTC"; + #endif + + time_t tBadCRCDate = mktime( &future ); + result.second = lastUpdateDate; if( refreshDate > 0 && + refreshDate > tBadCRCDate && time(NULL) < refreshDate) { result.first = true;