mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
In __libnx_init_time(), use 'NX' for the tzname instead of the actual timezone-name. Using the original tzname causes issues with certain timezones. Closes #353.
This commit is contained in:
parent
fb01dd8196
commit
f043307e7f
@ -321,7 +321,7 @@ void __libnx_init_time(void)
|
|||||||
memset(envstr, 0, sizeof(envstr));
|
memset(envstr, 0, sizeof(envstr));
|
||||||
|
|
||||||
//Avoid using *printf.
|
//Avoid using *printf.
|
||||||
strncpy(envstr, info.timezoneName, sizeof(envstr)-1);
|
strncpy(envstr, /*info.timezoneName*/"NX", sizeof(envstr)-1); // Some tznames have numeric characters and '-'/'+', so the actual tzname can't be used.
|
||||||
strptr = &envstr[strlen(envstr)];
|
strptr = &envstr[strlen(envstr)];
|
||||||
*strptr++ = is_west ? '+' : '-';
|
*strptr++ = is_west ? '+' : '-';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user