Fix conversion

This commit is contained in:
Carles Fernandez 2019-08-25 05:00:02 +02:00
parent 57de35d92e
commit 85e30b4759
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
1 changed files with 1 additions and 1 deletions

View File

@ -1588,7 +1588,7 @@ void time2epoch(gtime_t t, double *ep)
ep[1] = mon % 12 + 1;
ep[2] = day + 1;
ep[3] = static_cast<int>(sec / 3600);
ep[4] = sec % static_cast<int>(3600 / 60);
ep[4] = static_cast<int>(sec % 3600 / 60);
ep[5] = sec % 60 + t.sec;
}