Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

Hi.

In my database I have a small script that acts as an activitiy log, whereby as each user moves to and from particular screens or specific record activity, a new record is written to one of the tables with the user's login name, time & date, etc. It works great... except... (theres always a but) - the time recorded in the table is that of the client's workstation - which is fine except for several clients are operating in different timezones so the order of the log gets out of whack.

I have considerded a few options to get around this, but none will work satisfactorily. They included having a table that contains the timezone of that user - but they may change offices.

The only credible one is to have the server itself have an open table with a field that is it's own time and pull the info from there, but that means have FM (not FMS) running on the server as well, and seems like a clumsy solution.

Any ideas please peoples?

Cheers,

Greg

Posted

Hi.

In my database I have a small script that acts as an activitiy log, whereby as each user moves to and from particular screens or specific record activity, a new record is written to one of the tables with the user's login name, time & date, etc. It works great... except... (theres always a but) - the time recorded in the table is that of the client's workstation - which is fine except for several clients are operating in different timezones so the order of the log gets out of whack.

I have considerded a few options to get around this, but none will work satisfactorily. They included having a table that contains the timezone of that user - but they may change offices.

The only credible one is to have the server itself have an open table with a field that is it's own time and pull the info from there, but that means have FM (not FMS) running on the server as well, and seems like a clumsy solution.

Any ideas please peoples?

Cheers,

Greg

Try:

Get ( CurrentHostTimeStamp )

Posted

Try:

Get ( CurrentHostTimeStamp )

Oh dear. How embarassing. How does one blush online?!

Thankyou. :)

Posted

You could also just use the Access.log that is generated by FMS itself. With a small OS level script you can move a copy of it to the FMS docs folder and have FMS import it into your desired table. Doesn't burden your solution and works across all your hosted files....

Posted

Hi Wim Decorte,

That sounds like a good solution too - straight from the core as it were. I will look at that.

Thank you.

Greg

This topic is 4948 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.