- Ensure correct time settings
- TODO: add more tips
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.
Updated 2 months ago