glpi icon indicating copy to clipboard operation
glpi copied to clipboard

Reservation start date

Open lbonetti opened this issue 3 years ago • 1 comments

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.

image

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

lbonetti avatar Aug 11 '22 15:08 lbonetti

I have the same issue. The day when clicked is the previous day.

guieloi avatar Aug 12 '22 00:08 guieloi

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.

github-actions[bot] avatar Oct 11 '22 08:10 github-actions[bot]

This bug persists in version 10.0.3.

lbonetti avatar Oct 12 '22 00:10 lbonetti

I've removed non english comment.

trasher avatar Oct 14 '22 13:10 trasher

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

Rafaeldgs avatar Oct 14 '22 13:10 Rafaeldgs

This bug solved in version 10.0.4.

waltherhuggo avatar Nov 03 '22 15:11 waltherhuggo