date_and_time does not work with pre-epoch timestamps
Closed this issue · 0 comments
vasil-pashov commented
Describe the bug
date_and_time uses gmtime which does not work with pre-epoch dates in that case gmtime returns nullptr.
Steps/Code to Reproduce
N/A
Expected Results
Make it so that it works with pre-epoch dates or throw reasonable exception.
OS, Python Version and ArcticDB Version
Python: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
OS: Windows-10-10.0.22631-SP0
ArcticDB: 4.5.0
Backend storage used
No response
Additional Context
No response