Skip to content

Commit

Permalink
support years through 2080
Browse files Browse the repository at this point in the history
  • Loading branch information
joeycastillo committed Aug 27, 2023
1 parent e4ad0e5 commit 7fd51ca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions movement/watch_faces/settings/set_time_face.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ static void _handle_alarm_button(movement_settings_t *settings, watch_date_time
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);
date_time.unit.year = ((date_time.unit.year % 60) + 1);
break;
case 4: // month
date_time.unit.month = (date_time.unit.month % 12) + 1;
Expand Down

0 comments on commit 7fd51ca

Please sign in to comment.