Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add date format to support offset in nuget analyser #1264

Merged
merged 1 commit into from
May 17, 2024

Conversation

sahibamittal
Copy link
Collaborator

@sahibamittal sahibamittal commented May 17, 2024

Description

Nuget Analyzer has list of two supported SimpleDateFormat which are allowed for parsing the dates being received from the repository, based on limited test data.

Now, as seen in logs, below date format is also received from the nugget repo. This date has offset dateTime and needs to be added to the list of supported formats in order to avoid the ParseException.

Date example: 1900-01-01T00:00:00+00:00
Format needed: yyyy-MM-dd'T'HH:mm:ss

Addressed Issue

Closes #1263

Checklist

  • I have read and understand the contributing guidelines
  • This PR fixes a defect, and I have provided tests to verify that the fix is effective
  • This PR implements an enhancement, and I have provided tests to verify that it works as intended
  • This PR introduces changes to the database model, and I have updated the migration changelog accordingly
  • This PR introduces new or alters existing behavior, and I have updated the documentation accordingly

Copy link

sonarcloud bot commented May 17, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@sahibamittal sahibamittal changed the title Add date format to support offset in nugget analyser Add date format to support offset in nuget analyser May 17, 2024
@nscuro nscuro added this to the 0.5.0 milestone May 17, 2024
@nscuro nscuro added the defect Something isn't working label May 17, 2024
Copy link
Member

@nscuro nscuro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sahibamittal!

It seems that DT v4.x has the same issue. Would you be interested in submitting a PR for that, too?

@nscuro nscuro merged commit 25cbf88 into main May 17, 2024
11 checks passed
@nscuro nscuro deleted the issue-1263-support-offset-date-time-nuget-analyzer branch May 17, 2024 18:27
@sahibamittal
Copy link
Collaborator Author

Thanks @sahibamittal!

It seems that DT v4.x has the same issue. Would you be interested in submitting a PR for that, too?

Yes, I'll raise it 👍🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add supported date format with offset in Nuget repository MetaAnalyzer
2 participants