added copy of SetDateTime
added TEST define to override random time calculation