Use DI for datetime so values can still be static in tests