-
Notifications
You must be signed in to change notification settings - Fork 736
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
Year is missing when using DateTime.fromObject({birthDate}).toISODate() #1328
Comments
Hard to tell if you're running into an issue parsing the date or in Can you provide the output of |
I can confirm i'm having the same issue on vercel on a new deployment. Luxon 3.1.0 works fine locally.
|
By the looks of it, this commit should fix the issue on the Next.js side of things, still waiting for a release on that. In the meantime, setting |
I had run into a similar issue with some code like |
A minification issue makes sense to me. @zachgoll do you know what the root SWC issue and fix was? At any rate, since this is fixed in the latest Next, closing this one out. |
Description
Weird bug, I use luxon with Next.js, and on my local machine it works great:
const date = DateTime.fromObject({year: 1999, month: 09, day: 09}).toISODate()
it returns
date === '1999-09-09'
;But after deployed to Vercel, the code above does not parse the year,
it returns
date === '-09-09'
;and I use the same machine and the same browser just a different tab.
The same happens in Firefox Browser and on other machines.
The text was updated successfully, but these errors were encountered: