Closed milancurcic closed 11 years ago
Reported and fixed by Bjoern Hendrik Fock of University of Hamburg.
Problem: Calling datetime%utc() with a datetime instance that is already in UTC timezone (i.e. datetime%tz = 0) resulted in a division by zero.
datetime%utc()
datetime
datetime%tz = 0
Solution: Replacing the problematic line that uses division with a line that uses the intrinsic SIGN() function solves the problem.
SIGN()
Reported and fixed by Bjoern Hendrik Fock of University of Hamburg.
Problem: Calling
datetime%utc()
with adatetime
instance that is already in UTC timezone (i.e.datetime%tz = 0
) resulted in a division by zero.Solution: Replacing the problematic line that uses division with a line that uses the intrinsic
SIGN()
function solves the problem.