• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / tarantool / 23889938679

02 Apr 2026 07:46AM UTC coverage: 87.612% (+0.01%) from 87.599%
23889938679

push

github

Buristan
datetime: refactored new() and set() - part 5

`datetime.new()` and `datetime_object:set()` code
refactored for more clarity.

- Deduplicated tzindex, tzoffset extract.
- Deduplicated buggy epoch adjustment (see gh-10363).
- Fixes `new()` with timestamp to use it as base_epoch
  to calculate tzoffset instead of `epoch_from_dt(dt)`
  with default `dt = DAYS_EPOCH_OFFSET` (gh-12412).
- Make `set()` with tzoffset only to reset tzindex to zero
  (gh-12416, part of gh-7680).

Fixes #12412
Closes #12416
Part of #7680
See also #10363

NO_DOC=bugfix

(cherry picked from commit 2ae86783b)

70184 of 118103 branches covered (59.43%)

105492 of 120408 relevant lines covered (87.61%)

1398296.3 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

94.19
/src/box/vy_write_iterator.c


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc