Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 3958 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi,

 

I want to create a manual filemaker synchronization button for both relookup and update information in the server, desktop, and ios devices.  If I use date and timestamp, would time difference in various part of the world be a factor of making mistakes in the synchronization? Is it possible to fix all the timestamp for all the devices the same even they are in different parts of the world?

 

Thanks.

 

Kent

Posted

FileMaker 13 introduced the Get ( CurrentTimeUTCMilliseconds ) function, which could spare you from casual timestamp processing during syncing. If you use

 

GetAsTimestamp ( Get ( CurrentTimeUTCMilliseconds ) / 1000 )

 

for your record timestamps, you won't have to worry about converting timestamps between time zones during your sync processes, since each timestamp is presumably UTC. This does not account for the possibility of devices not correctly knowing what time zone they are in, but there's not much we can do about that. This also doesn't account for clock drift, but you can detect and compensate for that by comparing Get ( CurrentHostTimestamp ) and Get ( CurrentTimestamp ) when you sync (assuming you know what time zone both the host and client are in at the time of the sync, which you can determine by comparing Get ( CurrentTimeUTCMilliseconds ) with Get ( CurrentTimestamp )).

 

You shouldn't need to use an additional date field, since a timestamp already includes the date.

This topic is 3958 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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