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 Date Serialization #7570

Merged

Conversation

APickledWalrus
Copy link
Member

Description

This PR aims to fix the date serialization issue on 2.10. Before 2.9, dates were serialized with the primitive field being represented as timestamp (the name of the old field). However, when serialization was updated in 2.10, the serializer was created using "time" as the Fields name, which is why old variables could not be deserialized.

I resolve this issue by changing the name back to timestamp and adding a compatibility check for the time field name.


Target Minecraft Versions: any
Requirements: none
Related Issues:

@APickledWalrus APickledWalrus added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. 2.10 Targeting a 2.10.X version release labels Feb 1, 2025
@APickledWalrus APickledWalrus added the patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. label Feb 1, 2025
@APickledWalrus APickledWalrus merged commit f7eb560 into SkriptLang:dev/patch Feb 1, 2025
5 checks passed
@APickledWalrus APickledWalrus deleted the patch/date-serialization branch February 1, 2025 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.10 Targeting a 2.10.X version release bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants