Jump to content
Sign in to follow this  
dickiechung

What if the clock of the FMS13 or the mobile device is not accurate?

Recommended Posts

If a user of a mobile device set the clock of his device wrongly, say year 2015 becomes 2014, and do a sync with EasySync, would it mess up data in the FMS13 server? If so, what would be the best strategy to avoid such incidence. In general, how can we synchronize the clock of the server and the mobile devices BEFORE a sync action is done by EasySync?

Share this post


Link to post
Share on other sites

To avoid these types of issues, EasySync uses UTC timestamps to keep track of all date/time-related information that is needed to coordinate syncing. This also allows us to sync data with users in different timezones.

 

- Tim

Share this post


Link to post
Share on other sites

Hi Tim,

 

Thank you for your feedback. I am afraid UTC Timestamp does not fully solve the problem. I tested the Get ( CurrentTimeUTCMilliseconds ) of Filemaker. If I change the system clock, the value return by Get ( CurrentTimeUTCMilliseconds ) will change accordingly. The Help of Filemaker does not mention that Get ( CurrentTimeUTCMilliseconds ) needs an internet connection for an external reference of the precise UTC Time.

 

What I worry is when a mobile device is used offline, the modified time will be set according to the system clock. Another scenario: what happen when 2 databases are synchronised over an intranet with with no internet connection to get the precise UTC time? Will they both rely on their own system clock to get the UTC time?

 

My preliminary test of EasySync seems to indicate that the accuracy of the system clock do matter.

Share this post


Link to post
Share on other sites

Running into this now. 

Share this post


Link to post
Share on other sites

I think now that I've thought this through,  Get ( CurrentTimeUTCMilliseconds ) calcs UTC from the system's local time and time zone. So, as long as the workstation's time and time zone are accurate, the function will return an accurate value.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.