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(server): keep full datetime precision from database #10622

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fyfrey
Copy link
Contributor

@fyfrey fyfrey commented Jun 25, 2024

we have had these sync issues due to JavaScript reducing precision of DateTime when converting to JS Date. This still affects changes for albums, users etc. in the app and can result in not doing an update while it would be needed etc. This draft PR changes all related fields (createdAt, updatedAt, deletedAt) in the server entities and DTOs to type string instead of Date. DateTime information is passed through the JavaScript code as full precision ISO Strings.

@bo0tzz
Copy link
Member

bo0tzz commented Jun 25, 2024

Breaking change, right?

@fyfrey
Copy link
Contributor Author

fyfrey commented Jun 25, 2024

Breaking change, right?

no API changes at all.

@bo0tzz
Copy link
Member

bo0tzz commented Jun 25, 2024

Ah, the API type was already string of course. Nice :D

Copy link
Contributor

@jrasm91 jrasm91 left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants