glpi
glpi copied to clipboard
Reservation start date
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Is there an existing issue for this?
- [X] I have searched the existing issues
Version
10.0.2
Bug description
When clicking on a day on the calendar to make a reservation, the "start date" field appears with the previous day.
In the image below, for example, i clicked to make a reservation on the 18th of August. However, the suggested starting date was the day before, August 17th.

The bug only happens in the "Month" layout. Does not happen in "Week" or "Day" layouts. The bug happens in any user profile.
Relevant log output
No response
Page URL
No response
Steps To reproduce
No response
Your GLPI setup information
No response
Anything else?
No response
I have the same issue. The day when clicked is the previous day.
There has been no activity on this issue for some time and therefore it is considered stale and will be closed automatically in 10 days.
If this issue is related to a bug, please try to reproduce on latest release. If the problem persist, feel free to add a comment to revive this issue. If it is related to a new feature, please open a topic to discuss with community about this enhancement on suggestion website.
You may also consider taking a subscription to get professionnal support or contact GLPI editor team directly.
This bug persists in version 10.0.3.
I've removed non english comment.
I was able to solve it by adding in the code + HOUR_TIMESTAMP * 3
C:\wamp64\www\glpi\src\Reservation.php Linha 677
} else { $resa->getEmpty(); $resa->fields["begin"] = date("Y-m-d H:i:s", strtotime($options['begin'])+ HOUR_TIMESTAMP * 3); // Adicionado + HOUR_TIMESTAMP * 3
This bug solved in version 10.0.4.