slytle Posted January 31, 2007 Posted January 31, 2007 I have built a nice server based time clock solution. The only problem is that someone figured out that by changing the time on their computer, they can clock in at any time they want to. Short of locking the System Prefs on everyones computers, or firing someone for forging their timecards, is there a way to fix this? Is there a way I could use the time on a remote computer for my timestamps? I have a computer that I can dedicate to the cause. TIA, .sly
Ender Posted January 31, 2007 Posted January 31, 2007 Use the get(currenthosttimestamp) function to get the host's time/date.
slytle Posted January 31, 2007 Author Posted January 31, 2007 Thanks for the reply. The only problem I have with that is that it returns the date and time. Any way I can set it to return the time only?
Inky Phil Posted January 31, 2007 Posted January 31, 2007 Don't know if this would help. It is from the on line help file Insert Current Time script step Format Insert Current Time [select; ] Options Select entire contents replaces the contents of a field with the current time. If you do not select this option, Insert Current Time adds the value of the current time to the end of the field's existing data. Select Go to target field or click Specify to specify the field to paste into. Web compatibility This script step is web-compatible. Description Pastes the current system time into the specified field. Note If the specified field does not exist on the layout where the script is being performed, Insert Current Time returns an error code which can be captured with the Get(LastError) function. Example Go to Layout [Call Log::Data Entry] Insert Current Time [select; Call Log::Call Time]
mr_vodka Posted January 31, 2007 Posted January 31, 2007 (edited) GetAsTime ( get(currenthosttimestamp) ) with time result. Edit: When I just tested it, get(currenthosttimestamp) with time result yields the same result as well. Edited January 31, 2007 by Guest
Recommended Posts
This topic is 6505 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 accountSign in
Already have an account? Sign in here.
Sign In Now