You could also use [timecop](https://github.com/travisjeffery/timecop).