Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Why the date and time is not correct? Help me!

    Mobile and Embedded
    2
    2
    1745
    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.
    • H
      hungchuviet last edited by

      I've send a message form one phone to another at 2010-nov-01 09:01:00 AM
      but when I read inbox message from phone, it return the date 2010-nov-31 02:01:00
      (GMT+7)
      (I used 2 function: message.date() and message.receivedDate())
      Date and time on my phone is the same as my computer and region setting
      Must I add 7 hours to the date?
      Thanks you very much!

      1 Reply Last reply Reply Quote 0
      • J
        jsiei97 last edited by

        This sounds like UTC vs local timezones.

        Inside all software you should use UTC and then on the other end when you would like to show it you convert it into the settings on that device.

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