Open justinwyllie opened 8 years ago
E.g. when creating the moment I want to do this:
moment.utc('datetime string', 'format string', true) not moment.('datetime string', 'format string', true)
As per the moment docs:
By default, moment parses and displays in local time.
If you want to parse or display a moment in UTC, you can use moment.utc() instead of moment().
This brings us to an interesting feature of Moment.js. UTC mode.
Could this be added as a prop - to use moment in UTC mode?
did you find a workaround for this? i also need this
basically no. the date was displayed to the users in local time. we converted it to UTC to send to our back-end.
E.g. when creating the moment I want to do this:
moment.utc('datetime string', 'format string', true) not moment.('datetime string', 'format string', true)
As per the moment docs:
By default, moment parses and displays in local time.
If you want to parse or display a moment in UTC, you can use moment.utc() instead of moment().
This brings us to an interesting feature of Moment.js. UTC mode.
Could this be added as a prop - to use moment in UTC mode?