Backdated attendance marking is possible, but it must be enabled from the Admin login.
Log in through the Admin Login.
Go to System Configuration.
Open Attendance Settings.
Locate the option “Mark Attendance for Previous Dates”.
Enter the number of previous days for which attendance marking should be allowed.
Click Save.

Admin and HR will be able to update or change the attendance of the respective user for the allowed previous dates.