[BUG] [Service]Response message about invalid long date is not friendly on formatDate API.
Open
@huihuiw01 is already working on this.
Since Jan 27, 2021.
area/java-service
kind/bug
priority/low
- Dominant language
- Java
- Stars
- 72
- Forks
- 69
- Avg merge
- 23h 32m
- Merged PRs (30d)
- 4
Description
Describe the bug
build with commit af12ee44a66854e33eb4e104d5133e1be3789053
Response message about invalid long date is not friendly on formatDate API.
/i18n/api/v2/formatting/date/localizedDate
To Reproduce
Steps to reproduce the behavior:
- Go to 'https://localhost:8090/i18n/api/v2/formatting/date/localizedDate?locale=en&longDate=abc&pattern=y
'
longDate=abc - See response: message "For input string: abc" is not friendly.
{
"response": {
"code": 520,
"message": "For input string: \"abc\"",
"serverTime": ""
},
"signature": "",
"data": null
}
Expected behavior
It is better have more info to lead user to input correct kind data.
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.
Assessment
This issue has not been assessed yet.