From eb27cc701380604f119a30186ee65f2e1513245f Mon Sep 17 00:00:00 2001 From: Nightkingale <63483138+Nightkingale@users.noreply.github.com> Date: Sat, 1 Jun 2024 19:06:34 -0600 Subject: [PATCH] Fix auto-update and timezone strings --- .github/README.md | 4 ++-- source/cfg.cpp | 2 +- source/core.cpp | 4 ++-- source/timezone_offset_item.cpp | 2 +- source/timezone_query_item.cpp | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/README.md b/.github/README.md index 8f7b2db..a6991c7 100644 --- a/.github/README.md +++ b/.github/README.md @@ -18,8 +18,8 @@ If the program is placed correctly on an SD card, Wii U Time Sync will be listed * `normal` means that only success or failure notifications will appear, but no others. * `verbose` means that all notifications (statistics and such) will appear, useful for debugging. * `Configuration -> Time Offset (UTC)`: The amount of time to add/subtract from the coordinated universal time, `+00:00` by default. -* `Configuration -> Detect Timezone (press A)`: Uses the IP Geolocation API to guess the timezone, setting the offset accordingly. -* `Configuration -> Auto-update Timezone`: Automatically utilizes the IP Geolocation API to set your offset accordingly, `off` by default. +* `Configuration -> Detect Time Zone (press A)`: Uses the IP Geolocation API to guess the timezone, setting the offset accordingly. +* `Configuration -> Auto Update Time Zone`: Automatically utilizes the IP Geolocation API to set your offset accordingly, `off` by default. * `Configuration -> Notification Duration (seconds)`: The amount of seconds which notifications will appear on screen for, `5` by default. * `Configuration -> Tolerance (milliseconds)`: The amount of milliseconds in which Wii U Time Sync will tolerate differences, `500` by default. * `Configuration -> Background Threads`: Controls how many servers are queried at once, `4` by default. diff --git a/source/cfg.cpp b/source/cfg.cpp index 84c1f1b..61591ff 100644 --- a/source/cfg.cpp +++ b/source/cfg.cpp @@ -27,7 +27,7 @@ namespace cfg { namespace label { - const char* auto_tz = "Auto-update Timezone"; + const char* auto_tz = "Auto Update Time Zone"; const char* msg_duration = "Notification Duration (seconds)"; const char* notify = "Show Notifications"; const char* server = "NTP Servers"; diff --git a/source/core.cpp b/source/core.cpp index f34a1f1..014d7ae 100644 --- a/source/core.cpp +++ b/source/core.cpp @@ -272,13 +272,13 @@ namespace core { if (offset != cfg::get_utc_offset()) { cfg::set_utc_offset(offset); notify::info(notify::level::verbose, - "Auto-updated timezone to " + name + + "Auto-updated time zone to " + name + "(" + utils::tz_offset_to_string(offset) + ")"); } } catch (std::exception& e) { notify::error(notify::level::verbose, - "Failed to auto-update timezone: "s + e.what()); + "Failed to auto-update time zone: "s + e.what()); } } diff --git a/source/timezone_offset_item.cpp b/source/timezone_offset_item.cpp index c696f3c..583574a 100644 --- a/source/timezone_offset_item.cpp +++ b/source/timezone_offset_item.cpp @@ -117,6 +117,6 @@ timezone_offset_item::on_changed() variable.reset(); } catch (std::exception& e) { - logging::printf("Error storing timezone offset: %s", e.what()); + logging::printf("Error storing time zone offset: %s", e.what()); } } diff --git a/source/timezone_query_item.cpp b/source/timezone_query_item.cpp index 1c87220..0312cb5 100644 --- a/source/timezone_query_item.cpp +++ b/source/timezone_query_item.cpp @@ -12,7 +12,7 @@ using namespace std::literals; timezone_query_item::timezone_query_item() : wups::config::text_item{{}, - "Detect Timezone (press " NIN_GLYPH_BTN_A ")", + "Detect Time Zone (press " NIN_GLYPH_BTN_A ")", "using http://ip-api.com", 30} {}