OWASP / OWASP/Nest

Replace generic Error with TypeError in formatDate

Open
#3,235 3 comments 0 reactions 0 assignees View on GitHub
bug question
Dominant language
Python
Stars
451
Forks
707
Avg merge
22h 59m
Merged PRs (30d)
91

Description

To locate the issue, go to frontend/src/utils/dateFormatter.ts.
The formatDate function performs a type check and throws a generic Error when the input cannot be parsed into a valid Date.

Image

Sonar issue reference:
https://sonarcloud.io/project/issues?impactSeverities=LOW&issueStatuses=OPEN%2CCONFIRMED&id=OWASP_Nest&open=AZlyHYW3SEbp2GJiJGDK

@arkid15r @kasya
I would like to take this up as a good first issue. Fixing this small issue will also help me understand the project’s contribution workflow.
please assign this to me. Thanks you

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.