You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I have a moment object of which the year is 1988 (e.g. moment("1988-02-10")) and I change the year (e.g. date.year(2017)). Then the day of month is always changed to the last day of the month.
Environment:
Chrome Version 61.0.3163.100 (Official Build) (64-bit) on MacOS Sierra Version 10.12.6.
Examples can be run on the javascript console on the momentjs homepage.
Description of the Issue and Steps to Reproduce:
When I have a moment object of which the year is 1988 (e.g.
moment("1988-02-10")
) and I change the year (e.g.date.year(2017)
). Then the day of month is always changed to the last day of the month.Environment:
Chrome Version 61.0.3163.100 (Official Build) (64-bit) on MacOS Sierra Version 10.12.6.
Examples can be run on the javascript console on the momentjs homepage.
Some incorrect examples::
Some good working examples:
The text was updated successfully, but these errors were encountered: