tarantool / tarantool/tarantool
datetime: can't parse '%Y%m'
Open
Nobody has claimed this yet.
bug
datetime
- Dominant language
- Lua
- Stars
- 3.7k
- Forks
- 419
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 88
Description
./src/tarantool -i
Tarantool 3.7.0-entrypoint-160-gbd9d8e9020
type 'help' for interactive help
tarantool> datetime = require('datetime')
---
...
tarantool> datetime.parse( datetime.new():set({year=2026, month=1}):format('%Y%m'), {format = '%Y%m'} )
---
- error: 'builtin/datetime.lua:898: could not parse ''202601'' using ''%Y%m'' format'
...
In contrast Python3:
import datetime as dt
>>> dt.datetime.strptime('202601', '%Y%m')
datetime.datetime(2026, 1, 1, 0, 0)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the datetime.parse call shown in the issue, then inspect builtin/datetime.lua around line 898, where the reported error originates. Trace how %Y%m is handled against the formatted value 202601; done means parsing that format succeeds with the expected January 2026 value while existing behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 68/100