🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How to deal with Time DST (daylight saving time) ?

    UIFlow
    2
    2
    3.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • inrepublicaI
      inrepublica
      last edited by

      Hi all,

      In France we use daylight saving time.
      clocks was set forward by one hour in the spring ("spring forward") and set clocks back by one hour in autumn ("fall back") to return to standard time.

      how to deal with UIFlow?

      Thanks.

      1 Reply Last reply Reply Quote 0
      • M
        microdynasty
        last edited by

        Not sure if it works for this application, but in another project we used an API from google that returns current time anywhere in the world.

        Also as a general point, UTC+0 (Zulu) time is the way to go. It has no DST, and can be displayed as local time using an API such as the above to get the DST anywhere on earth on any day/time.

        https://developers.google.com/maps/documentation/timezone/get-started

        1 Reply Last reply Reply Quote 0
        • First post
          Last post