19:30
then I take a user and his timezone and convert this time back to UTC
16:30
I suppose
console.log(moment()); //works
$.fn.datepicker = function(options){
console.log(moment()); //doesn't work
});
@Nirajn2311
const date1 = moment('2000-01-01');
const date2 = moment('2000-02-01');
const diff = date2.diff(date1, 'days'); // 31
moment('8:0', 'H:m').format('HH:mm')
Moment
instead of Date
in your models?
Im having a moment time issue. The time, that moment displays, is off by an hour (best guess is timezone at the moment). When i display the time in node & then in my terminal, you can see the times don't match. Which i don't understand, because they are both being running locally.
On another computer, they do match. Does anyone have an idea what could cause this?