Troubleshooting Tips

Some tips for avoiding common problems.

Ensure correct time settings

Sometimes users' system clocks can't be trusted to have the correct time. For
example, users who live near a time-zone border might manually set their time zone
and adjust the system clock by an hour.

To avoid problems, MEDKit provides the function getOffsetDate() to get a more accurate date object.
The SDK communicates with the server on load to calculate the time offset without reference to the user's system clock.

The function takes no arguments, and returns a Date object representing the real time.