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

@@ -17,7 +17,7 @@ GpSystemServices_POSIX::GpSystemServices_POSIX()
int64_t GpSystemServices_POSIX::GetTime() const
{
time_t t = time(nullptr);
return static_cast<int64_t>(t) - 2082844800;
return static_cast<int64_t>(t) + 2082844800;
}
void GpSystemServices_POSIX::GetLocalDateTime(unsigned int &year, unsigned int &month, unsigned int &day, unsigned int &hour, unsigned int &minute, unsigned int &second) const