aboutsummaryrefslogtreecommitdiff
path: root/zencore/compactbinary.cpp
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2022-02-02 19:08:10 +0100
committerPer Larsson <[email protected]>2022-02-02 19:08:10 +0100
commit10ab6d8c768b54dfcd085ec94aa959dc9d1103ce (patch)
treec48a96d8a1ea8d4267906af76e72e1e95f70fc78 /zencore/compactbinary.cpp
parentChanged OIDC token endpoint. (diff)
parentMerge branch 'main' of https://github.com/EpicGames/zen (diff)
downloadzen-10ab6d8c768b54dfcd085ec94aa959dc9d1103ce.tar.xz
zen-10ab6d8c768b54dfcd085ec94aa959dc9d1103ce.zip
Merged main.
Diffstat (limited to 'zencore/compactbinary.cpp')
-rw-r--r--zencore/compactbinary.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/zencore/compactbinary.cpp b/zencore/compactbinary.cpp
index cded378a1..902ec26c8 100644
--- a/zencore/compactbinary.cpp
+++ b/zencore/compactbinary.cpp
@@ -54,7 +54,7 @@ GetPlatformToDateTimeBiasInSeconds()
#if ZEN_PLATFORM_WINDOWS
const uint64_t PlatformEpochYear = 1601;
#else
- const uint64_t PlatformEpochYear = 1970;
+ const uint64_t PlatformEpochYear = 1970;
#endif
const uint64_t DateTimeEpochYear = 1;
return uint64_t(double(PlatformEpochYear - DateTimeEpochYear) * 365.2425) * 86400;
@@ -71,7 +71,7 @@ DateTime::Now()
GetSystemTimeAsFileTime(&SysTime);
return DateTime{(EpochBias * SecsTo100nsTicks) + (uint64_t(SysTime.dwHighDateTime) << 32) | SysTime.dwLowDateTime};
#else
- int64_t SecondsSinceUnixEpoch = time(nullptr);
+ int64_t SecondsSinceUnixEpoch = time(nullptr);
return DateTime{(EpochBias + SecondsSinceUnixEpoch) * SecsTo100nsTicks};
#endif
}