Any way to parse a time string using Moment.js but ignore timezone info?

前端 未结 10 1644
深忆病人
深忆病人 2020-12-30 01:56

Given the volume of Timezone questions, I would have thought to be able to find the answer to this issue, but haven\'t had any success.

Is there a way using mo

10条回答
  •  情深已故
    2020-12-30 02:29

    Momentjs default logic will format the given time with local timezone. To format original date, I wrote a function:

    https://github.com/moment/moment/issues/2788#issuecomment-321950638

提交回复
热议问题