-
-
Notifications
You must be signed in to change notification settings - Fork 539
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
Typescript generated code for type: 'date' generates bad values #520
Comments
Can you provide a sample? |
In #493 I made
However, |
So for Date we need:
and for momentJS we need
? |
I think we might need to pad it for It is meant to be |
Whats the difference to:
? |
They should look like:
Says they need to be certain lengths. something dodgy like:
getMonth is 0-11 because JS... |
Oh shit... :) |
hahaha :) |
should be <= 9 |
Nah, cause if it is 9, you +1 it, then it is 10 and doesn't need padding. |
ah yes :) |
Have pushed up a start to this, see #528 |
Working towards fixing date formatting #520
I feel bad reporting this because it's my bug! haha :)
Follows #492 #493
The code I added for this is wrong (when your date isn't in utc?)
I'll revisit this tomorrow.
For moment we can use
.format('YYYY-MM-DD')
, will have to figure out Date object.The text was updated successfully, but these errors were encountered: