The receiver derives the time from the signal itself.
Further, a big part of the working of GPS is that your location is trilaterated from discrepancies in time from the various signals due to time of flight.
The only way to accurately detect a spoofed signal is if you already know your location. (You can infer spoofing using IMUs, or signal analysis, etc… but that is a rare capability at this point)