Skip to content

Commit

Permalink
Add comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
campbell-m committed Sep 11, 2023
1 parent 5dbbbb8 commit cd7c53e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/js/edit_entry.js.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ function onAllDayClick()
{
<?php
// If the booking day spans midnight then the first and last slots
// are going to be on different days
// are going to be on different days.
// This code works because new Date() with just a date string generates a UTC
// date and toISOString() always returns a UTC datetime.
?>
if (onAllDayClick.oldStart < firstSlot)
{
Expand Down

0 comments on commit cd7c53e

Please sign in to comment.