-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 deprecation warning of unformatted moment call #1767
Conversation
@ljharb What label do we set for this change? I can't find a |
@ljharb Also, any way I can bypass the |
You can just merge through that. For exempt, just don’t apply a semver label :-) |
@@ -5,7 +5,7 @@ import sinon from 'sinon-sandbox'; | |||
import getCalendarDaySettings from '../../src/utils/getCalendarDaySettings'; | |||
import { BLOCKED_MODIFIER } from '../../src/constants'; | |||
|
|||
const testDay = moment('10/10/2017'); | |||
const testDay = moment('10/10/2017', 'MM/DD/YYYY'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fwiw i think this works too:
const testDay = moment('10/10/2017', 'MM/DD/YYYY'); | |
const testDay = moment('10-10-2017'); |
9ec1a83
to
b46cedf
Compare
2149b1a
to
760a72a
Compare
Summary
Removes this very distracting warning.
Reviewers
@ljharb @majapw @TaeKimJR @ahuth @indiesquidge