MCPcopy Create free account
hub / github.com/defold/defold / FillTimeZone

Function FillTimeZone

engine/dlib/src/dlib/sys_win32.cpp:259–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257
258
259 void FillTimeZone(struct SystemInfo* info)
260 {
261 // tm_gmtoff not available on windows..
262 TIME_ZONE_INFORMATION t;
263 GetTimeZoneInformation(&t);
264 info->m_GmtOffset = -t.Bias;
265 }
266
267 typedef int (WINAPI *PGETUSERDEFAULTLOCALENAME)(LPWSTR, int);
268 typedef LONG (WINAPI *PRTLGETVERSION)(OSVERSIONINFOW*);

Callers 1

GetSystemInfoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected