Commit 5ff96aa
committed
datetime: refactor datetime_new timezone handling
This patch makes `datetime.new()` call internally determine the timezone
before calculating time since epoch when passing a timestamp as a
parameter. It's needed to fix handling timezones with timestamps to be
able to take the provided timezone into account when calculating time
since epoch.
Needed for tarantool#10363
NO_CHANGELOG=no visible changes
NO_TEST=no new behavior
NO_DOC=no new behavior1 parent 6c5a3f6 commit 5ff96aa
1 file changed
+17
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
587 | 604 | | |
588 | 605 | | |
589 | 606 | | |
| |||
615 | 632 | | |
616 | 633 | | |
617 | 634 | | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
625 | | - | |
626 | 635 | | |
627 | 636 | | |
628 | 637 | | |
| |||
640 | 649 | | |
641 | 650 | | |
642 | 651 | | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | 652 | | |
650 | 653 | | |
651 | 654 | | |
| |||
0 commit comments