1

I don't really want to wait until Monday to validate this fix. Is there a way I can do something at the back-end to simulate it being Monday?

3
  • 2
    what caused it on Mondays only? Commented Sep 28, 2017 at 13:36
  • 3
    Is the date check on the server or on the client?
    – Kate Paulk
    Commented Sep 28, 2017 at 13:50
  • 1
    What platform, what tools, etc? Commented Sep 28, 2017 at 16:54

1 Answer 1

4

First, figure out where the application gets its sense of time from. Then, figure out how you can either change the time/date there or how you can mock that thing to make the application believe that it's the date/time you want.

1
  • 3
    This should go without saying but it's especially important for this sort of time-dependent or hard to reproduce bug: whatever is done to "fake" the time should be tested both on the old and new versions of the code. If it doesn't trigger the bug in the code that doesn't have the fix, it isn't a valid test for the code that does have the supposed fix.
    – c32hedge
    Commented Sep 28, 2017 at 16:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.