Please sign in to comment.
component: Add Now field to Present.
Previously, Present always used time.Now() to get the current local time. After this change, it uses its Now field for that. This makes it possible to mock time, so that tests continue to pass no matter what time they're run.
- Loading branch information...
Showing with 15 additions and 7 deletions.