I am creating a dynamic stamp and everything works fine. The only problem is that when I get to 12:00 am, the time displays as 00:00 am. 12:01 am displays as 00:01 am. All the other hours work fine, including 12:00 pm. Why is this happening and can I change it? Here is my code:
var timeFiled = "Time: " + util.printd("hh:MM:ss tt", new Date());
event.value = timeFiled;