Skip to content
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

12/31/2097 #166

Open
PythonEatsSQuirreL opened this issue Oct 27, 2021 · 1 comment
Open

12/31/2097 #166

PythonEatsSQuirreL opened this issue Oct 27, 2021 · 1 comment

Comments

@PythonEatsSQuirreL
Copy link

I am using esp32 and TinyGPS++ to save a csv file on my SD card with the time, date, alt, lng, lat. The CSV file is saved as created on 12/31/2097 and the year() month() day() hour() minute() seconds() is 2000-0-0 00:00:00.

Sometimes the year is 1999, sometimes 2000.

Any fixes?

@Nathan-ma
Copy link

First, leave the code you are using. is difficult to understand what you are doing without actually seeing it.

Second, you need to set a date and time. if you did this already, use Serial.println(now()) to print the time stamp, copy it and past on an epoch website (Like this one).

That's the date you have set, you can change it to whatever value you want, the library will just keep incrementing this value each second, you gotta set it first either using a RTC or NTC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants