Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Why the date and time is not correct? Help me!
Forum Update on Monday, May 27th 2025

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

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 1.9k Views
  • 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 Offline
    H Offline
    hungchuviet
    wrote on 31 Oct 2010, 19:20 last edited by
    #1

    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
    0
    • J Offline
      J Offline
      jsiei97
      wrote on 1 Nov 2010, 07:32 last edited by
      #2

      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
      0

      1/2

      31 Oct 2010, 19:20

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved