diff options
author | Joey Castillo <joeycastillo@utexas.edu> | 2022-02-12 22:34:36 -0500 |
---|---|---|
committer | Joey Castillo <joeycastillo@utexas.edu> | 2022-02-13 11:25:28 -0500 |
commit | 0bb267c702be08f420efffc7dd66782c7563e130 (patch) | |
tree | 86f46a661bfec380efa2295cc214f8e37b2c7e6d | |
parent | 96017d6ec1816ab1c9bd95b0308b908b4708d388 (diff) | |
download | Sensor-Watch-0bb267c702be08f420efffc7dd66782c7563e130.tar.gz Sensor-Watch-0bb267c702be08f420efffc7dd66782c7563e130.tar.bz2 Sensor-Watch-0bb267c702be08f420efffc7dd66782c7563e130.zip |
movement: start time zone list at UTC
-rw-r--r-- | movement/movement.c | 83 | ||||
-rw-r--r-- | movement/watch_faces/clock/world_clock_face.c | 2 |
2 files changed, 42 insertions, 43 deletions
diff --git a/movement/movement.c b/movement/movement.c index 8185458c..13cef97b 100644 --- a/movement/movement.c +++ b/movement/movement.c @@ -41,47 +41,47 @@ const int16_t movement_timeout_inactivity_deadlines[4] = {60, 120, 300, 1800}; movement_event_t event; const int16_t movement_timezone_offsets[] = { - -720, // 0 : -12:00:00 (Baker Island Time) - -660, // 1 : -11:00:00 (Niue Time) - -600, // 2 : -10:00:00 (Hawaii-Aleutian Standard Time) - -570, // 3 : -9:30:00 (Marquesas Islands Time) - -540, // 4 : -9:00:00 (Alaska Standard Time) - -480, // 5 : -8:00:00 (Pacific Standard Time) - -420, // 6 : -7:00:00 (Mountain Standard Time) - -360, // 7 : -6:00:00 (Central Standard Time) - -300, // 8 : -5:00:00 (Eastern Standard Time) - -270, // 9 : -4:30:00 (Venezuelan Standard Time) - -240, // 10 : -4:00:00 (Atlantic Standard Time) - -210, // 11 : -3:30:00 (Newfoundland Standard Time) - -180, // 12 : -3:00:00 (Brasilia Time) - -150, // 13 : -2:30:00 (Newfoundland Daylight Time) - -120, // 14 : -2:00:00 (Fernando de Noronha Time) - -60, // 15 : -1:00:00 (Azores Standard Time) - 0, // 16 : 0:00:00 (UTC) - 60, // 17 : 1:00:00 (Central European Time) - 120, // 18 : 2:00:00 (South African Standard Time) - 180, // 19 : 3:00:00 (Arabia Standard Time) - 210, // 20 : 3:30:00 (Iran Standard Time) - 240, // 21 : 4:00:00 (Georgia Standard Time) - 270, // 22 : 4:30:00 (Afghanistan Time) - 300, // 23 : 5:00:00 (Pakistan Standard Time) - 330, // 24 : 5:30:00 (Indian Standard Time) - 345, // 25 : 5:45:00 (Nepal Time) - 360, // 26 : 6:00:00 (Kyrgyzstan time) - 390, // 27 : 6:30:00 (Myanmar Time) - 420, // 28 : 7:00:00 (Thailand Standard Time) - 480, // 29 : 8:00:00 (China Standard Time, Australian Western Standard Time) - 525, // 30 : 8:45:00 (Australian Central Western Standard Time) - 540, // 31 : 9:00:00 (Japan Standard Time, Korea Standard Time) - 570, // 32 : 9:30:00 (Australian Central Standard Time) - 600, // 33 : 10:00:00 (Australian Eastern Standard Time) - 630, // 34 : 10:30:00 (Lord Howe Standard Time) - 660, // 35 : 11:00:00 (Solomon Islands Time) - 720, // 36 : 12:00:00 (New Zealand Standard Time) - 765, // 37 : 12:45:00 (Chatham Standard Time) - 780, // 38 : 13:00:00 (Tonga Time) - 825, // 39 : 13:45:00 (Chatham Daylight Time) - 840, // 40 : 14:00:00 (Line Islands Time) + 0, // 0 : 0:00:00 (UTC) + 60, // 1 : 1:00:00 (Central European Time) + 120, // 2 : 2:00:00 (South African Standard Time) + 180, // 3 : 3:00:00 (Arabia Standard Time) + 210, // 4 : 3:30:00 (Iran Standard Time) + 240, // 5 : 4:00:00 (Georgia Standard Time) + 270, // 6 : 4:30:00 (Afghanistan Time) + 300, // 7 : 5:00:00 (Pakistan Standard Time) + 330, // 8 : 5:30:00 (Indian Standard Time) + 345, // 9 : 5:45:00 (Nepal Time) + 360, // 10 : 6:00:00 (Kyrgyzstan time) + 390, // 11 : 6:30:00 (Myanmar Time) + 420, // 12 : 7:00:00 (Thailand Standard Time) + 480, // 13 : 8:00:00 (China Standard Time, Australian Western Standard Time) + 525, // 14 : 8:45:00 (Australian Central Western Standard Time) + 540, // 15 : 9:00:00 (Japan Standard Time, Korea Standard Time) + 570, // 16 : 9:30:00 (Australian Central Standard Time) + 600, // 17 : 10:00:00 (Australian Eastern Standard Time) + 630, // 18 : 10:30:00 (Lord Howe Standard Time) + 660, // 19 : 11:00:00 (Solomon Islands Time) + 720, // 20 : 12:00:00 (New Zealand Standard Time) + 765, // 21 : 12:45:00 (Chatham Standard Time) + 780, // 22 : 13:00:00 (Tonga Time) + 825, // 23 : 13:45:00 (Chatham Daylight Time) + 840, // 24 : 14:00:00 (Line Islands Time) + -720, // 25 : -12:00:00 (Baker Island Time) + -660, // 26 : -11:00:00 (Niue Time) + -600, // 27 : -10:00:00 (Hawaii-Aleutian Standard Time) + -570, // 28 : -9:30:00 (Marquesas Islands Time) + -540, // 29 : -9:00:00 (Alaska Standard Time) + -480, // 30 : -8:00:00 (Pacific Standard Time) + -420, // 31 : -7:00:00 (Mountain Standard Time) + -360, // 32 : -6:00:00 (Central Standard Time) + -300, // 33 : -5:00:00 (Eastern Standard Time) + -270, // 34 : -4:30:00 (Venezuelan Standard Time) + -240, // 35 : -4:00:00 (Atlantic Standard Time) + -210, // 36 : -3:30:00 (Newfoundland Standard Time) + -180, // 37 : -3:00:00 (Brasilia Time) + -150, // 38 : -2:30:00 (Newfoundland Daylight Time) + -120, // 39 : -2:00:00 (Fernando de Noronha Time) + -60, // 40 : -1:00:00 (Azores Standard Time) }; const char movement_valid_position_0_chars[] = " AaBbCcDdEeFGgHhIiJKLMNnOoPQrSTtUuWXYZ-='+\\/0123456789"; @@ -228,7 +228,6 @@ void app_init(void) { movement_state.settings.bit.button_should_sound = true; movement_state.settings.bit.le_interval = 1; movement_state.settings.bit.led_duration = 1; - movement_state.settings.bit.time_zone = 16; // default to GMT movement_state.light_ticks = -1; movement_state.alarm_ticks = -1; movement_state.next_available_backup_register = 4; diff --git a/movement/watch_faces/clock/world_clock_face.c b/movement/watch_faces/clock/world_clock_face.c index 6910eca0..de4eeaff 100644 --- a/movement/watch_faces/clock/world_clock_face.c +++ b/movement/watch_faces/clock/world_clock_face.c @@ -36,7 +36,7 @@ void world_clock_face_setup(movement_settings_t *settings, uint8_t watch_face_in world_clock_state_t *state = (world_clock_state_t *)*context_ptr; state->settings.char_0 = 0; state->settings.char_1 = 0; - state->settings.timezone_index = 16; // start at UTC + state->settings.timezone_index = 0; // start at UTC } } |