datetime: fix invalid representation of timestamps with fraction part
Sometimes we need negative timestamps to work with dates before 1970. But seems such cases were even covered in tests. So there wasn't any handling of negative timestamps with fraction part. Such datetime objects had incorrect string representation (e.g. "1963-11-22T12:30:02.-999"). This patch fixes it. Closes #8570 NO_DOC=bugfix
Showing
- changelogs/unreleased/gh-8570-fix-datetime-str-negative-nsec.md 4 additions, 0 deletions...logs/unreleased/gh-8570-fix-datetime-str-negative-nsec.md
- src/lua/datetime.lua 14 additions, 0 deletionssrc/lua/datetime.lua
- test/app-tap/datetime.test.lua 13 additions, 3 deletionstest/app-tap/datetime.test.lua
Loading
Please register or sign in to comment