• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Correcting GPS data for timezone and DST

Q&A Forum › Category: ESP32 › Correcting GPS data for timezone and DST
0 Vote Up Vote Down
jawilson asked 3 years ago

I have been using information provided in your article ESP32 NTP Time – Setting Up Timezones and Daylight Saving Time for several projects and all have worked.  I am now developing an application that requires the use of GPS for time.  I am reading GPS time/date and it works fine, but need to convert it to a local timezone and correct for DST.  How do I replace using the NTP with setting the time with TinyGPS++?  Could use a little help with this problem.

5 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
Can you better explain your question?
I don’t think I understand what you really need. Can you provide more details?
Regards,
Sara

0 Vote Up Vote Down
jawilson answered 3 years ago

I need to replace the set time that is currently using NTP with a process that use GPS time.  I don’t have a network connection but I do have great access to GPS satellites.  Hope that clarifies.

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

In what format do you get the date and time using the GPS?

0 Vote Up Vote Down
jawilson answered 3 years ago

I get a series of integers from tinygps++ gps.time.hour(), gps.time.minute(), gps.time.second(). gps.date.month(), gps.date.day(), gps.date.year().  I am now trying setTime to set the clock.  Will see how that works.

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Ok.
Then, let us know how it goes.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.