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:
yellows8 2019-12-19 16:22:45 -05:00
parent fb01dd8196
commit f043307e7f
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43

View File

@ -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 ? '+' : '-';