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

Moment falls back on js date which will be unsupported in upcoming major release #258

Open
essoen opened this issue Feb 28, 2017 · 1 comment
Labels

Comments

@essoen
Copy link
Member

essoen commented Feb 28, 2017

May occur when setting dates under profiles:

Deprecation warning: moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.
Arguments: [object Object]
Error
    at Function.createFromInputFallback (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:1:3172)
    at _e (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:1:11307)
    at Ye (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:1:15214)
    at Re (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:1:15075)
    at je (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:1:14795)
    at Ne (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:1:15527)
    at Ie (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:1:15561)
    at t (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:1:664)
    at https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:62:24185
    at Array.map (native)
    at t.value (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:62:24125)
    at t.value (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:62:25221)
    at c._renderValidatedComponentWithoutOwnerOrContext (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:74:24723)
    at c._renderValidatedComponent (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:74:24811)
    at c._updateRenderedComponent (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:74:24165)
    at c._performComponentUpdate (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:74:23966)
    at c.updateComponent (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:74:23244)
    at c.performUpdateIfNecessary (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:74:22684)
    at Object.performUpdateIfNecessary (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:10:17982)
    at s (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:7:15108)
    at r.perform (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:11:17011)
    at o.perform (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:11:17011)
    at o.perform (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:7:16188)
    at Object.S [as flushBatchedUpdates] (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:7:16357)
    at r.closeAll (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:11:17648)
    at r.perform (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:11:17094)
    at Object.batchedUpdates (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:57:18742)
    at Object.u [as enqueueUpdate] (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:7:15390)
    at r (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:58:721)
    at Object.enqueueSetState (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:58:1520)
    at t.r.setState (https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:57:15944)
    at https://app.drapenihavet.no/main-2157a6e80c3774c44a62.js:62:24044
e.(anonymous function) @ console.js:26
M @ moment.js:259
(anonymous) @ moment.js:271
_e @ moment.js:1169
Ye @ moment.js:1675
Re @ moment.js:1658
je @ moment.js:1625
Ne @ moment.js:1707
Ie @ moment.js:1711
t @ moment.js:16
(anonymous) @ index.jsx:123
value @ index.jsx:121
value @ index.jsx:180
_renderValidatedComponentWithoutOwnerOrContext @ ReactCompositeComponent.js:815
_renderValidatedComponent @ ReactCompositeComponent.js:841
_updateRenderedComponent @ ReactCompositeComponent.js:773
_performComponentUpdate @ ReactCompositeComponent.js:753
updateComponent @ ReactCompositeComponent.js:672
performUpdateIfNecessary @ ReactCompositeComponent.js:585
performUpdateIfNecessary @ ReactReconciler.js:160
s @ ReactUpdates.js:151
perform @ Transaction.js:136
perform @ Transaction.js:136
perform @ ReactUpdates.js:90
S @ ReactUpdates.js:177
closeAll @ Transaction.js:202
perform @ Transaction.js:149
batchedUpdates @ ReactDefaultBatchingStrategy.js:63
u @ ReactUpdates.js:209
r @ ReactUpdateQueue.js:22
enqueueSetState @ ReactUpdateQueue.js:201
r.setState @ ReactComponent.js:67
(anonymous) @ index.jsx:116
@essoen essoen added the tech label Feb 28, 2017
@essoen
Copy link
Member Author

essoen commented Apr 10, 2017

This post on StackOverflow should be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant