From f043307e7f580f6507f4285c898c6ac725bb364f Mon Sep 17 00:00:00 2001 From: yellows8 Date: Thu, 19 Dec 2019 16:22:45 -0500 Subject: [PATCH] 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. --- nx/source/runtime/newlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nx/source/runtime/newlib.c b/nx/source/runtime/newlib.c index 7f8f4a4d..56e6542f 100644 --- a/nx/source/runtime/newlib.c +++ b/nx/source/runtime/newlib.c @@ -321,7 +321,7 @@ void __libnx_init_time(void) memset(envstr, 0, sizeof(envstr)); //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++ = is_west ? '+' : '-';