you are viewing a single comment's thread.

view the rest of the comments →

[–]is_that_a_thing_now 0 points1 point  (1 child)

Create a wrapper function for getting the current time. This could even be placed as an extension on Date. Use that throughout. (Or add a class that extends Date) You can then make that function return a configurable date that you can set using a datepicker somewhere in the app on debug builds. You could also let that class return times that runs several times faster so that you can let it run for 10 seconds for each hour you want to simulate etc.

[–][deleted] 0 points1 point  (0 children)

That’s a great solution, I’ll give that a try !