Skip to content
Snippets Groups Projects
Commit 14fe4508 authored by Timur Safin's avatar Timur Safin Committed by Kirill Yukhin
Browse files

datetime: fix normalization with intervals

Normalization was unnecessary in negative interval values
close to 0. This led to extra second in result, like:

```
tarantool> date.now() - date.now()
---
- -1.000026000 seconds
...
```

We do need to normalize when assign to datetime values, but not for
intermediate intervals.

Closes #6882

NO_DOC=bugfix
parent ca68c6d7
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment