Fix win32 somewhat?

This commit is contained in:
2025-04-16 08:13:11 -05:00
parent b4c27e33fb
commit 1a96310a66

View File

@ -13,7 +13,7 @@ namespace Tesses::CrossLang
{
static int64_t ToLocalTime(int64_t local)
{
#if defined(__SWITCH__)
#if defined(__SWITCH__) || defined(_WIN32)
local -= _timezone;
if(_daylight)
#else
@ -177,7 +177,7 @@ namespace Tesses::CrossLang
dict->DeclareFunction(gc, "Sleep","Sleep for a specified amount of milliseconds (multiply seconds by 1000 to get milliseconds)", {"ms"},Time_Sleep);
gc->BarrierBegin();
#if defined(__SWITCH__)
#if defined(__SWITCH__) || defined(_WIN32)
dict->SetValue("Zone", (int64_t)-(_timezone));
dict->SetValue("SupportsDaylightSavings",(int64_t)_daylight);
#else