momentjs working and posting time correctly