From 1663d9d6fe86a41821cb9e9e87992d925d3ef25b Mon Sep 17 00:00:00 2001 From: elasota <1137273+elasota@users.noreply.github.com> Date: Wed, 7 Aug 2024 01:55:37 -0400 Subject: [PATCH] Fix more broken timestamps --- ASADTool/ASADTool.cpp | 2 +- AerofoilWeb/GpSystemServices_Web.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ASADTool/ASADTool.cpp b/ASADTool/ASADTool.cpp index d56b6c0..acf8551 100644 --- a/ASADTool/ASADTool.cpp +++ b/ASADTool/ASADTool.cpp @@ -72,7 +72,7 @@ int ProcessFileDatesInfo(FILE *f, uint32_t length, PortabilityLayer::MacFileProp return -1; } - const int64_t asEpochToMacEpoch = -3029547600LL; + const int64_t asEpochToMacEpoch = 3029547600LL; // Mac epoch in Unix time: -2082844800 // ASAD epoch in Unix time: 946702800 diff --git a/AerofoilWeb/GpSystemServices_Web.cpp b/AerofoilWeb/GpSystemServices_Web.cpp index bb004a7..933210f 100644 --- a/AerofoilWeb/GpSystemServices_Web.cpp +++ b/AerofoilWeb/GpSystemServices_Web.cpp @@ -91,7 +91,7 @@ GpSystemServices_Web::GpSystemServices_Web() int64_t GpSystemServices_Web::GetTime() const { time_t t = time(nullptr); - return static_cast(t) - 2082844800; + return static_cast(t) + 2082844800; } void GpSystemServices_Web::GetLocalDateTime(unsigned int &year, unsigned int &month, unsigned int &day, unsigned int &hour, unsigned int &minute, unsigned int &second) const