Skip to content

Commit

Permalink
Merge pull request #48 from scinscinscin/iso8601fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lcsmuller authored Mar 15, 2022
2 parents 12d4cf0 + 7cc5a3b commit fe93008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cog-utils/cog-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ cog_iso8601_to_unix_ms(const char str[], size_t len, uint64_t *p_value)
tm.tm_year -= 1900; /* struct tm takes years from 1900 */

*p_value = (((uint64_t)mktime(&tm) + cog_timezone()) * 1000)
+ (uint64_t)seconds * 1000.0;
+ (uint64_t)(seconds * 1000.0);

switch (tz_operator) {
case '+': /* Add hours and minutes */
Expand Down

0 comments on commit fe93008

Please sign in to comment.