-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GPSTimestamp getTime() is Off by One Month #5
Comments
I have fixed this in my local copy by changing line 170 in src/GPSFix.cpp from |
I found this too! Thank you @hicklin |
sikbrad
added a commit
to sikbrad/NemaTode
that referenced
this issue
May 31, 2021
…uccessfully without hickups.
lefebvre
pushed a commit
to lefebvre/NemaTode
that referenced
this issue
Jan 3, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The month of year field in $GPRMC sentences is indexed 1-12. This is also how it it is stored in the
month
class member ofGPSTimestamp
. IngetTime()
, howevermktime()
is called, which expects months be 0-11.This results in the timestamp returned by
getTime
being off by one month.The text was updated successfully, but these errors were encountered: