24 Aug
2021
24 Aug
'21
6:03 p.m.
Zebediah Figura <zfigura(a)codeweavers.com> writes:
@@ -410,6 +410,16 @@ static void atomic_store_long(volatile LONG *ptr, LONG value) static void set_user_shared_data_time(void) { timeout_t tick_count = monotonic_time / 10000; + timeout_t timezone_bias; + struct tm *tm; + time_t now; + + now = time( NULL ); + tm = gmtime( &now ); + timezone_bias = mktime( tm ) - now; + tm = localtime( &now ); + if (tm->tm_isdst) timezone_bias -= 3600; + timezone_bias *= TICKS_PER_SEC;
Do we really want to do that on every request? -- Alexandre Julliard julliard(a)winehq.org