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

Fix ThunderstoreMod date field typing #1438

Merged
merged 1 commit into from
Sep 17, 2024
Merged

Conversation

anttimaki
Copy link
Collaborator

The date fields denoting creation and last update date are in fact strings, not dates. IDK if it has always been this way or if e.g. moving the online mod list from disk to IndexedDB changed this.

Luckily the date fields are only used for newer/older than comparisons, and the ISO 8601 date strings yield the same results for those operations as the Date objects would.

The date fields denoting creation and last update date are in fact
strings, not dates. IDK if it has always been this way or if e.g.
moving the online mod list from disk to IndexedDB changed this.

Luckily the date fields are only used for newer/older than comparisons,
and the ISO 8601 date strings yield the same results for those
operations as the Date objects would.
Copy link
Collaborator

@VilppeRiskidev VilppeRiskidev left a comment

Choose a reason for hiding this comment

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

Nice 👌

@anttimaki anttimaki merged commit 5dbd21a into develop Sep 17, 2024
5 of 7 checks passed
@anttimaki anttimaki deleted the fix-date-field-types branch September 17, 2024 05:27
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.

2 participants