Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.6.4
-
None
-
None
Description
import org.codehaus.groovy.runtime.TimeCategory use ( TimeCategory ) { println 10.minutes.ago.format('yyyyMMdd HH:mm:ss') }
Prints: 20090818 00:00:00 <- Note that the time component has been reset to zero. Conversely, 10.minutes.from.now works as expected.
I'll try to look into this but I've left it unassigned for now. I'm not sure if someone else could resolve this more quickly than I could.