Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
Fix for ISO8601 timestamp shifting 8 years (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
aivanova5 authored Aug 20, 2019
1 parent 63196b9 commit ef8b34b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gldcore/timestamp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1188,8 +1188,8 @@ TIMESTAMP convert_to_timestamp(const char *value)
S = (unsigned short)s;
unsigned int ns = (s-S)*1e9;
DATETIME dt = {Y,m,d,H,M,S,ns,0};
TIMESTAMP t = mkdatetime(&dt);
return t - (tzh*60+tzm)*60;
dt.tzoffset = (tzh*60+tzm)*60;
return mkdatetime(&dt);
}

/* scan ISO format date/time */
Expand Down

0 comments on commit ef8b34b

Please sign in to comment.