[*] Clean up

This commit is contained in:
Reece Wilson 2022-03-08 01:36:12 +00:00
parent e1e1da8e1b
commit 6afe6c7342
2 changed files with 14 additions and 14 deletions

View File

@ -198,25 +198,25 @@ namespace Aurora::Time
AUKN_SYM tm ToCivilTime(AuInt64 time, bool UTC)
{
std::tm ret{};
std::tm ret {};
auto timet = MSToCTime(time);
if (UTC)
{
#if defined(AURORA_COMPILER_MSVC)
#if defined(AURORA_COMPILER_MSVC)
auto tm = gmtime_s(&ret, &timet);
#else
#else
auto tm = gmtime_r(&timet, &ret);
#endif
#if defined(AURORA_COMPILER_MSVC)
#endif
#if defined(AURORA_COMPILER_MSVC)
SysAssert(!tm, "couldn't convert civil time");
#else
#else
SysAssert(tm, "couldn't convert civil time");
#endif
#endif
}
else
{
#if defined(AURORA_COMPILER_MSVC)
#if defined(AURORA_COMPILER_MSVC)
if (localtime_s(&ret, &timet))
#else
if (!localtime_r(&timet, &ret))