Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3978506
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:03:21+00:00 2026-05-20T05:03:21+00:00

we are creating a location-enabled app where users use this app to record certain

  • 0

we are creating a location-enabled app where users use this app to record certain events in the field.

The important part of the event data is when an event happened. This is no issue when user is online, but we also support situations when user is offline (by remembering & later syncing events).

There could be situations when users are offline and they change the time on the phone, so that event times are wrongly recorded.

So, what would be the best way to ensure we get a correct time, independent of user actions, given that device could be offline. Some ideas:

  1. GPS time. Is it possible to acquire it?
  2. Tracking system time changes made by user?
  3. Any other idea?

Note: time does need second accuracy, approximately minute accuracy would be ok.

Note2: we are creating mobile apps for Android and iPhone, so I’m interested for generic solutions and also solutions that are specific to any of those two platforms.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T05:03:22+00:00Added an answer on May 20, 2026 at 5:03 am

    I, personally, wouldn’t worry so much about this scenario. The liklihood of someone intentionally changing the time on their Android (which periodically throughout the day syncs to a time server automatically) while offline seems low to me. That being said, the only way I could see compensating for this is to keep a service running in the background that keeps a running tally of the seconds passed since recording the location data offline. Once uploaded to your servers you could use the elapsed seconds to calculate a time offset from current UTC time. It’s an awful lot to go through, but it would work.

    GPS time is an interesting idea, but Android allows users of the SDK to send mock locations to their devices. I’m not sure you could reliably track changes to system time either, and even if you could you’d be capturing them after the fact without the current real time as context.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating usercontrol. This control use javascript <script src='js/my.js' type='text/javascript'></script> My web directory location
I'm creating an app which listens to significant location change events and in case
I'm creating rails application where it allow users to add geo-location data for restaurants,
I am creating an application which tracks the users location using GPS, stores the
I'm thinking about creating a location-aware iPhone app that could work offline by coming
Im creating a java web server for storing JSON strings with location data (latitude,
I'm creating a script that will take users location from their ip. I saw
I am creating an application, which tracks the users location using GPS, stores the
I am currently in the process of creating an application that records current location
I'm creating an iPhone app that will have a preloaded set of locations with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

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.