datetime: use tzoffset in a parse() with custom format
The patch fixes a behaviour, when `datetime.parse()` ignores `tzoffset` option if custom format is used. Fixes #8333 Relates to #10420 NO_DOC=bugfix (cherry picked from commit 04811e032f29afe0fa6206ef2c7a0f8434861830)
Showing
- changelogs/unreleased/gh-8333-fix-ignoring-tzoffset-in-parse.md 4 additions, 0 deletions...logs/unreleased/gh-8333-fix-ignoring-tzoffset-in-parse.md
- src/lua/datetime.lua 12 additions, 9 deletionssrc/lua/datetime.lua
- test/app-tap/datetime.test.lua 5 additions, 1 deletiontest/app-tap/datetime.test.lua
Loading
Please register or sign in to comment