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

datetime: interval initialization via pairs

Fixed incorrect interval initialization for case of `()` used
while it was correct for `{}` arguments.

NO_DOC=bugfix
NO_CHANGELOG=bugfix
NO_TEST=bugfix

```
tarantool> itv = require('datetime').interval.new{}
---
...

tarantool> itv
---
- 0 seconds
...

tarantool> itv = require('datetime').interval.new()
---
...

tarantool> itv
---
- +0.000000001 seconds
...
```

(cherry picked from commit d183ae6d)
parent cb348219
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