Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix JST time zone error #818

Merged
merged 1 commit into from Jun 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 5 additions & 2 deletions release/src/router/rc/common.c
Expand Up @@ -1389,8 +1389,11 @@ void time_zone_x_mapping(void)
nvram_set("time_zone_x", tmpstr);

/* special mapping */
if (nvram_match("time_zone", "JST"))
nvram_set("time_zone_x", "UCT-9");
if (nvram_match("time_zone", "JST")) {
nvram_set("time_zone_x", "UTC-9");
snprintf (tmpstr, sizeof(tmpstr), "%s", "JST-9");
}

#if 0
else if (nvram_match("time_zone", "TST-10TDT"))
nvram_set("time_zone_x", "UCT-10");
Expand Down