You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the video you can see I am using bootstrap datetimepicker which it self uses momentjs, when I initialize the publishdate it's few minutes after what is on my computer, when I click in the datetimepicker and choose a date, correct time is then set.
Why does momentjs intialy give me wrong time and datepicker gives correct?
Please include the values of all variables used.
Environment:
Win 10 Chrome latest version
If you are reporting an issue, please run the following code in the environment you are using and include the output:
Description of the Issue and Steps to Reproduce:
Moment returns time that is few minutes after time that my computer is showing.
This is how I set the time: var publishdate = moment().format('YYYY-MM-DD HH:MM');
Here is a video of it:
https://youtu.be/2ctTNhqYR0A
In the video you can see I am using bootstrap datetimepicker which it self uses momentjs, when I initialize the publishdate it's few minutes after what is on my computer, when I click in the datetimepicker and choose a date, correct time is then set.
Why does momentjs intialy give me wrong time and datepicker gives correct?
Please include the values of all variables used.
Environment:
Win 10 Chrome latest version
If you are reporting an issue, please run the following code in the environment you are using and include the output:
output
The text was updated successfully, but these errors were encountered: