ZKLibrary icon indicating copy to clipboard operation
ZKLibrary copied to clipboard

how can I add time of working to an existing user ?

Open FairouzGattoufi opened this issue 4 years ago • 5 comments

I want to add time for user like I mean : user1 he work from 8am to 7 pm he is not able to put the fingerprint at 8 pm the device will not be active for him ? I need help please

FairouzGattoufi avatar Mar 16 '20 14:03 FairouzGattoufi

?? When you use getAttendence function, the returned value is an array of [user_id,state,datetime] Regardless of the time! If user1 push finger at 8am then it will be stored on the device, unless you getAttendance. If he pushes at 5pm, also it will be stored on the device.

AmirTallap avatar Mar 16 '20 16:03 AmirTallap

get it thank you so much

when he pointed, out of his time, the device will not allow him

FairouzGattoufi avatar Mar 17 '20 13:03 FairouzGattoufi

I don't understand your point?

AmirTallap avatar Mar 17 '20 14:03 AmirTallap

Please remember that the library is ONLY for reading attendance from the device. So, all control over attendance records is in your application. When users enter or leave your office outside the time you specify, you have the right to record it as "out of office". Ofcourse you need to have your own database to your application.

kamshory avatar Mar 26 '20 23:03 kamshory