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.format() returning incorrect hours #3785
Comments
I'm going to assume you mean incorrect minutes, not hours. The reason you are seeing that is that you are using |
Oh, you have quite a few things going on here. First, you're using 24 hour clock instead of 12 with the Second, you have a UTC date, and it is converting to local. To keep it utc, use |
Oh rights, thanks for detailed feedback. |
@maggiepint .utc resolved my issue :) |
Even mine thanks |
holy s. unbelievable. thank a lot |
Thanks
…On Thu, Dec 2, 2021 at 1:45 PM Nguyen Ngoc Ha ***@***.***> wrote:
I'm going to assume you mean incorrect minutes, not hours. The reason you
are seeing that is that you are using MM which is the token for months.
You want mm.
holy s. unbelievable. thank a lot
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3785 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB7T6P23FI53SB5DR3UMKBLUO4TJZANCNFSM4DBKNCGA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
--
*NANI*
|
Thanks for this issue. This specific issue encourages and teaches us to properly read the documentation, before implementing or integrating any sort of libraries. |
Description of the Issue and Steps to Reproduce:
I have found an issue with moment.format() function returning incorrect string as follow:
Above test were conducted on https://momentjs.com/ with Chrome console.
Experiencing same issue with our application. (Node 6.2.2)
Environment:
Chrome 56.0.2924.87 on OSX, moment 2.15.1
The text was updated successfully, but these errors were encountered: