Skip to content

Commit

Permalink
Correctly handle timestamps with negative offsets and fractional hours
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Sep 12, 2010
1 parent 1fadd0a commit 63f97bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/sequel_pg/sequel_pg.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ static VALUE spg_timestamp(const char *s) {
if(sscanf(s + pos, "%3d:%2d", &offset_hour, &offset_minute) == 0) {
/* No offset found */
check_offset = 0;
} else if (s[pos] == '-') {
offset_minute *= -1;
}
}

Expand Down

0 comments on commit 63f97bf

Please sign in to comment.