Skip to content

Commit

Permalink
Fix corner case
Browse files Browse the repository at this point in the history
  • Loading branch information
beutlich committed Apr 15, 2020
1 parent ba9d075 commit 466f15d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modelica/Resources/C-Sources/ModelicaTime.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ double ModelicaTime_difftime(int ms, int sec, int min, int hour, int mday,
#else
if (1 == mday && 1 == mon) {
if (year == refYear) {
return ms/1000.0;
return 60 * (60 * hour + min) + sec + ms/1000.0;
}
else if (1970 == year) {
/* Avoid calling mktime for New Year 1970 in local time zone */
Expand Down

0 comments on commit 466f15d

Please sign in to comment.