[update the code for timesheet error]

Hello,

This fix resolve the time sheet error, when we update on attendance(sign in/sign out)

Thanks.