In date rules use `format` property for format date in error message when don't set other format properties
Open
Nobody has claimed this yet.
good first issue
status:ready for adoption
type:enhancement
- Dominant language
- PHP
- Stars
- 167
- Forks
- 47
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 3
Description
For example:
new Date(
format: 'php:d.m.Y',
min: '19.11.2013',
max: '31.12.2099',
skipOnEmpty: true,
),
In this case I expect that in error message date will be formatted as php:d.m.Y.
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
Start by locating the Date validation rule and the code or tests covering its error message. Reproduce the example with only the format property set, then verify that the resulting message uses that format when the other format properties are unset.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100