mardi 1 novembre 2016

speeding up time in a cloud server

i have an application that sends out notifications based on number of hours before a certain date.

  1. user sets date/time of event: December 31, 9pm
  2. notification #1 is sent 2 days previous (at December 29, 9pm)
  3. notification #2 is sent 1 day previous (at December 30, 9pm)
  4. notification #3 is sent 2 hours previous (at December 31, 7pm)

If i was testing on dev machine, i can adjust time of server or by adjusting timestamps within the IDE. However, this is hosted within Azure Cloud Service and I don't have that luxury.

Any suggestions on how I can avoid waiting for actual to elapse to test?

Aucun commentaire:

Enregistrer un commentaire