Skip to content

Commit

Permalink
ttttrivial
Browse files Browse the repository at this point in the history
  • Loading branch information
graebm committed Mar 1, 2024
1 parent 6991ba4 commit ea4ef80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/date_time.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ static bool s_advance_if_c(struct aws_byte_cursor *str, char c) {
return true;
}

/* Read the (optional) fractional seconds. If present, str is advanced.
/* Read the (optional) fractional seconds (".123"). If present, str is advanced.
* Returns false if there was an error */
static bool s_read_optional_fractional_seconds(struct aws_byte_cursor *str) {
if (str->len == 0) {
Expand Down Expand Up @@ -516,6 +516,7 @@ static bool s_parse_iso_8601(struct aws_byte_cursor str, struct tm *parsed_time,
return false;
}

/* Success! */
*seconds_offset = (time_t)(hours_offset * 3600 + minutes_offset * 60) * (negative_offset ? -1 : 1);
return true;
}
Expand Down

0 comments on commit ea4ef80

Please sign in to comment.