osqzss / gps-sdr-sim

Software-Defined GPS Signal Simulator
MIT License
2.61k stars 760 forks source link

Erroneous Date Calculation in GPS Receivers: Future Time Settings Misalignment #399

Open neu-aetd opened 1 month ago

neu-aetd commented 1 month ago

When I set a future date using the parameter 'T' to May 18, 2039, at 00:00:00, the GPS receiver incorrectly displays the date as October 2, 2019, at 00:00:00. This pattern continues with other future years as follows: If the year is set to 2040, the output shifts back to 2020. If the year is set to 2041, the output shifts back to 2021. If the year is set to 2050, the output shifts back to 2030. If the year is set to 2060, the output shifts back to 2020. 2039 Screenshot_20240521-182124 Screenshot_20240521-182131

osqzss commented 1 month ago

https://en.wikipedia.org/wiki/GPS_week_number_rollover