horilla-opensource / horilla

Horilla is a free and open source HR software.
https://www.horilla.com/
GNU Lesser General Public License v2.1
226 stars 150 forks source link

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

Open eanbuadmin opened 1 month ago

eanbuadmin commented 1 month ago

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

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.

horilla-opensource commented 1 month ago

Hi @eanbuadmin ,

Can you share the screenshot of the shift schedules?

With Regards, Team Horilla

eanbuadmin commented 1 month ago

shift schdule shift shiftschddule1 Hi Team, shift schedules attached

vanyell commented 4 weeks ago

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

horilla-opensource commented 3 weeks ago

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