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

Wrap date fields in Tournament with new Date() #9

Merged
merged 6 commits into from Apr 9, 2023
Merged

Conversation

smayya337
Copy link
Member

Wrapping the date fields in the Tournament class with a new Date() lets us convert strings to dates (e.g. "2019-06-01" becomes the correct date for 6/1/2019) without impacting current functionality (e.g. new Date(new Date("2019-06-01")) is equal in value to new Date("2019-06-01")). This makes our work easier for the redesign because the current APi workflow likes to output dates as strings instead of Date objects, which breaks SciolyFF but is completely fine otherwise.

lets us convert strings to dates w/o impacting current functionality
@coveralls
Copy link

coveralls commented Apr 8, 2023

Coverage Status

Coverage: 95.9% (-0.09%) from 95.995% when pulling c3a3595 on create-date into 5467650 on main.

@tctree333 tctree333 merged commit 7549ff0 into main Apr 9, 2023
3 checks passed
@tctree333 tctree333 deleted the create-date branch April 9, 2023 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants