Fix broken timestamps

This commit is contained in:
elasota
2024-08-06 23:15:58 -04:00
parent 4340e8fc5c
commit 5e2085da00
3 changed files with 3 additions and 3 deletions

View File

@@ -71,7 +71,7 @@ int main(int argc, const char **argv)
}
PortabilityLayer::CombinedTimestamp ts;
ts.SetMacEpochTime(currentTimeUnix + ts.kMacEpochToUTC);
ts.SetMacEpochTime(static_cast<int64_t>(currentTimeUnix) - ts.kMacEpochToUTC);
ts.SetLocalYear(currentTimeStruct->tm_year + 1900);
ts.m_localMonth = currentTimeStruct->tm_mon + 1;