Is there a way to use server time to time prevent cheating?

Hey guys! Im working on an upgrade system in my game which uses the real time to tell if an upgrade is finished or not and also I cant use the phones local time (yes its a mobile game) because if I do and people find out… well than its gamebraking. Also I can’t find any examples in C# and all of them are like 3 years old. So anyways its a good idea to refresh this.

I dont have a code written yet but maybe you guys can give me some examples or there is an article i need to read.

Any help will be apritiated.

I can’t find the link but if you search the forum there was a similar question about people slowing their devices so they could get the top score. I think it was something like slow hack. The dev was looking at validating time as well. I think the only way was to have it connect to a server & check the time periodically.