horilla-opensource/horilla

Night shift in time punch created and out time punch separately created in next day in time

Opened this issue · 4 comments

Bug Report

Description

[A brief description of the bug or issue you're encountering.]
Capture30

Steps to Reproduce

  1. [Detailed step-by-step instructions to reproduce the issue.]

Expected Behavior

[What you expected to happen.]

Actual Behavior

[What actually happened.]

Screenshots

[If applicable, provide screenshots illustrating the issue.]

Environment

  • Django Version: [Django version you're using, e.g., 3.2.1]
  • Python Version: [Python version, e.g., 3.9]
  • Operating System: [Your OS, e.g., Windows 10, Ubuntu 20.04]
  • Browser: [If applicable, specify the browser and version you're using.]

Additional Information

[Any other relevant information, logs, error messages, or context that might help in understanding and fixing the issue.]

Possible Solution

[If you have any ideas or suggestions on how to fix the issue, feel free to provide them here. This is optional.]

Labels

[If your project uses labels, suggest any labels that might apply to this issue, such as 'bug', 'needs investigation', etc.]

Priority

[Specify the priority level for this issue, such as 'high', 'medium', 'low', etc.]

Assignees

[If you want to suggest an assignee or tag a specific person to look into this issue, mention their GitHub username here.]

Related Issues

[If there are any related issues or pull requests, mention them here. This is optional.]

Note: Remember to search through existing issues before submitting a new one to ensure that the issue hasn't been reported already. Provide as much information as possible to help the maintainers understand and address the problem effectively.

Hi @eanbuadmin ,

Can you share the screenshot of the shift schedules?

With Regards,
Team Horilla

shift schdule
shift
shiftschddule1
Hi Team, shift schedules attached

I think I have a similar problem. I have automatic checkout turned on.

Please see below screenshot.

Morning shift. Time-ins have correct date and time. However, time-outs are not. Yesterday's date was recorded instead.

Screenshot 2024-10-30 182748

I can open a separate issue if this is not related. Thanks

Attendance date will take the yesterday date for only night shifts.

For example the Monday shift it will start 10 PM (Monday) and ends in Tuesday 7 AM. So the attendance is actually for Monday and ends in Tuesday. That is, the attendance_date will be yesterday and checkout date is current date for the attendance accordingly to the activities