The Date.NextTime() function started failing for me today on CS10.5. For example:
Date now = Date.ListToDate({2015, 10, 30, 0, 0, 0}) // 30 October 2015Date later = Date.NextTime(now, 1, 1, 62, 0) // should return 2 November 2015echo(later) // actually returns 1 October 2015The Date.NextTime() function is used by the agents to calculate the next date an agent should run. In particular, the default Midnight Event Producer or LateEventProducer (AgentID=1000) by default uses the input values in the example above. This is causing my daily agent to run every five minutes today.
This works correctly on CS10.