summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/SystemInfo.cpp
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@gmail.com>2022-07-25 02:26:09 -0400
committerGitHub <noreply@github.com>2022-07-25 09:26:09 +0300
commit4450c58216822e9e80f85999bf88f848d9b72464 (patch)
tree38c654452f597f6046b3581ebb2a722cab02a2f8 /src/displayapp/screens/SystemInfo.cpp
parent93477e25cf017ee50f62b6f6eed2a8300f216c8a (diff)
Date formats: Use ISO 8601 (#1040)
* System Info: Use YYYY-MM-DD The date format with the slashes has different meaning in different regions * Terminal Watchface: Use dashes as date separator Using the popular ISO 8601 format instead Co-authored-by: Riku Isokoski <riksu9000@gmail.com>
Diffstat (limited to 'src/displayapp/screens/SystemInfo.cpp')
-rw-r--r--src/displayapp/screens/SystemInfo.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/displayapp/screens/SystemInfo.cpp b/src/displayapp/screens/SystemInfo.cpp
index 7e1ae2f8..54059796 100644
--- a/src/displayapp/screens/SystemInfo.cpp
+++ b/src/displayapp/screens/SystemInfo.cpp
@@ -143,7 +143,7 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen2() {
lv_obj_t* label = lv_label_create(lv_scr_act(), nullptr);
lv_label_set_recolor(label, true);
lv_label_set_text_fmt(label,
- "#808080 Date# %02d/%02d/%04d\n"
+ "#808080 Date# %04d-%02d-%02d\n"
"#808080 Time# %02d:%02d:%02d\n"
"#808080 Uptime#\n %02lud %02lu:%02lu:%02lu\n"
"#808080 Battery# %d%%/%03imV\n"
@@ -152,9 +152,9 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen2() {
"#808080 Accel.# %s\n"
"#808080 Touch.# %x.%x.%x\n"
"#808080 Model# %s",
- dateTimeController.Day(),
- static_cast<uint8_t>(dateTimeController.Month()),
dateTimeController.Year(),
+ static_cast<uint8_t>(dateTimeController.Month()),
+ dateTimeController.Day(),
dateTimeController.Hours(),
dateTimeController.Minutes(),
dateTimeController.Seconds(),