first off thank you for creating this kind of amazing pkg and sharing it with us
i used to use this pkg for along time ago and by then there was no problems with moment stuff in it
but recently i just facing with this error in my terminal yelling mew about deprecation warnings like below( pm2 log in my terminal ):
0|myTmpProject | 2019-01-08 10:21: Deprecation warning: use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.
here is the code that is use in my react project:
let _date = dateCreated.split('T')[0]
_date = moment(_date, 'YYYY-MM-DD').locale('fa').format('YYYY/MM/DD')
basically I'm just getting a time stamp from mongo which looks like this:2019-01-05T14:14:10.305Z
hi there
first off thank you for creating this kind of amazing pkg and sharing it with us
i used to use this pkg for along time ago and by then there was no problems with moment stuff in it but recently i just facing with this error in my terminal yelling mew about deprecation warnings like below( pm2 log in my terminal ):
here is the code that is use in my react project:
basically I'm just getting a time stamp from mongo which looks like this:
2019-01-05T14:14:10.305Z
i also tried this out:
but no result i got yet...
it works but i'm worries about future as it warns me about deprecation stuff that goes on in moment js team.
any kinda response would be appreciated.
thanks alot