Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Division by zero in datetime%utc() #5

Closed
milancurcic opened this issue Oct 24, 2013 · 0 comments
Closed

Division by zero in datetime%utc() #5

milancurcic opened this issue Oct 24, 2013 · 0 comments
Labels

Comments

@milancurcic
Copy link
Member

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.

Solution: Replacing the problematic line that uses division with a line that uses the intrinsic SIGN() function solves the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant