In order to make sure that the local time (date and time) wasn’t changed by the user, we can use the TimeCheck method.
public void HasLocalTimeChanged()
bool hasChanged = SKGL.SKM.TimeCheck();
Debug.WriteLine("The local time was changed by the user. Validation fails.");
Debug.WriteLine("The local time hasn't been changed. Continue validation.");
It has been reported that this method might return false even though the time hasn’t changed. A solution to this is to run the method several times.