Closed lackmannbg closed 2 years ago
I cannot recreate the issue.
@cconard96 https://imgbox.com/eqG3AtJ6
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
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
Perfect!!! With this fix, it worked correctly! Thanks!
I confirm the bug. Should be fixed by #13006.
Code of Conduct
Is there an existing issue for this?
Version
10.0.3
Bug description
When clicking on a day on the calendar to make a reservation, the "start date" field appears with the previous day.
Relevant log output
No response
Page URL
http://localhost/glpi/front/reservationitem.php
Steps To reproduce
After making an item available for reserve. When trying to book it, the reservation is always with the date of the day before the reservation.
Your GLPI setup information
Instruções de instalação e configuração
Server
GLPI constants
Libraries
SQL replicas
Notifications
Plugins list
Anything else?
No response