
Originally Posted by
mc12345678
So where time = d.getHours(); if it is 12:01 then time will be 12:01 and not just 12?
I'm sorry that I don't have the solution specifically, but am trying to understand and to close what looks like the issues. In looking for a way to present the time to a customer I was surprised to find code on stackexchange indicating that it was necessary to convert the returned date() value to the time local to the user as java/javascript is supposed to be all about the user's side. But not infallible resources. No conversion appears to be necessary for the date/time, but d.getHours() will return a whole number and therefore between 12:00 and 12:59 the. Variable time will equal 12 which is not specifically captured in the above code.