Skip to content

Commit

Permalink
removed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
voloved committed Oct 27, 2024
1 parent 341f518 commit 65d3f40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions movement/movement.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ static bool _movement_check_dst_changeover_occurring_now(watch_date_time date_ti
for(uint8_t i = 0; i < rules_len; i++) {
urule_t unpacked_rule;
uoffset_t offset;
unpack_rule(&zone_rules[rules_idx + i], date_time.unit.year + (WATCH_RTC_REFERENCE_YEAR - 2000), &unpacked_rule); //gets the fucking rules
dst_occur_date[i] = _movement_convert_udate_to_date_time(unpacked_rule.datetime); // converts to datetime
get_current_offset(&local_zone, &unpacked_rule.datetime, &offset); // gets the offset of
unpack_rule(&zone_rules[rules_idx + i], date_time.unit.year + (WATCH_RTC_REFERENCE_YEAR - 2000), &unpacked_rule);
dst_occur_date[i] = _movement_convert_udate_to_date_time(unpacked_rule.datetime);
get_current_offset(&local_zone, &unpacked_rule.datetime, &offset);
int32_t sec_offset = (offset.hours * 60 + offset.minutes) * 60;
if (unpacked_rule.is_local_time == 0) {
int32_t offset_non_dst = zone_defns[tz_idx_curr].offset_inc_minutes * OFFSET_INCREMENT * 60;
Expand Down

0 comments on commit 65d3f40

Please sign in to comment.