fix: The SBI time string converting error in 32bit

This commit is contained in:
Sukchan Lee 2021-01-08 10:42:51 -05:00
parent a0ebf20c88
commit e531ccab5a
4 changed files with 13 additions and 13 deletions

View file

@ -345,7 +345,7 @@ bool ogs_sbi_time_from_string(ogs_time_t *timestamp, char *str)
memset(&tm, 0, sizeof(tm));
ogs_strptime(seconds, "%Y-%m-%dT%H:%M:%S%z", &tm);
usecs = (ogs_time_t)(atof(subsecs) * 1000000);
usecs = (ogs_time_t)floor(atof(subsecs) * 1000000.0 + 0.5);
rv = ogs_time_from_gmt(timestamp, &tm, usecs);
if (rv != OGS_OK) {