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: preserve date values set to null #160

Merged
merged 3 commits into from
Dec 6, 2023
Merged

fix: preserve date values set to null #160

merged 3 commits into from
Dec 6, 2023

Conversation

bajtos
Copy link
Member

@bajtos bajtos commented Nov 30, 2023

Before this change, when the client sent end_at: null, we would convert that value to Date(null), which is the Unix epoch.

After this change, we preserve null values as null.

Links:

Before this change, when the client sent `end_at: null`, we would
convert that value to `Date(null)`, which is the Unix epoch.

After this change, we preserve null values as null.

Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
test/test.js Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
@bajtos bajtos enabled auto-merge (squash) December 6, 2023 08:42
@bajtos bajtos merged commit 704678d into main Dec 6, 2023
8 checks passed
@bajtos bajtos deleted the fix-null-date branch December 6, 2023 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ done
Development

Successfully merging this pull request may close these issues.

2 participants