The divide by 1000 probably turned the integer milliseconds into a decimal seconds, try casting it to int and see what happens: def secs = (int) (now() / 1000)
Note I only have a couple of weeks with groovy myself, so don’t know all the idiosyncrasies.
OK