summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoeycastillo <joeycastillo@utexas.edu>2022-11-28 01:28:02 -0600
committerjoeycastillo <joeycastillo@utexas.edu>2022-11-28 01:28:02 -0600
commit34d72e3296242a8dbbd82a21943cdd555c590a80 (patch)
tree09e7d5a9b5859e16d89a90c8632d191cf0bd8455
parent16048e0c209acf8ff6fc9cadf882d994f612877e (diff)
downloadSensor-Watch-34d72e3296242a8dbbd82a21943cdd555c590a80.tar.gz
Sensor-Watch-34d72e3296242a8dbbd82a21943cdd555c590a80.tar.bz2
Sensor-Watch-34d72e3296242a8dbbd82a21943cdd555c590a80.zip
time set: allow setting year through 2050
-rw-r--r--movement/watch_faces/settings/set_time_face.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/movement/watch_faces/settings/set_time_face.c b/movement/watch_faces/settings/set_time_face.c
index af5421f1..1605f119 100644
--- a/movement/watch_faces/settings/set_time_face.c
+++ b/movement/watch_faces/settings/set_time_face.c
@@ -66,8 +66,8 @@ bool set_time_face_loop(movement_event_t event, movement_settings_t *settings, v
date_time.unit.second = 0;
break;
case 3: // year
- // only allow 2021-2030. fix this sometime next decade
- date_time.unit.year = ((date_time.unit.year % 10) + 1);
+ // only allow 2021-2050. fix this if we make it that far.
+ date_time.unit.year = ((date_time.unit.year % 30) + 1);
break;
case 4: // month
date_time.unit.month = (date_time.unit.month % 12) + 1;