• Hello. There should be a time validation on save single day event.

    • 2024-06-02 15:00 – 2024-06-02 17:00 = OK
    • 2024-06-02 15:00 – 2024-06-02 13:00 = FALSE

    Also I think multi day event view in calendar is just wrong

    2024-06-03 17:00 – 2024-06-04 13:00 is shown as:

    2024-06-03 17:00 – 13:00 & 2024-06-04 17:00 – 13:00 which doesn’t make any sense, it shoud be:

    2024-06-03 17:00 – 23:59 & 2024-06-04 00:00 – 13:00

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Spiffy Plugins

    (@spiffyplugins)

    The time validation on single day events has always been left loose. This allows events that end on the following day.

    The multi-day event start and end times are set up for something like a conference where each day is 9-5.

    Thread Starter tonyp90

    (@tonyp90)

    With time validation I had in mind something like this.

    if ($dateFrom == $dateTo) {
      if ($timeFrom >= $timeTo) {
        return false;
      }
     }
     return true

    I think the conference you referring should be handled as multiple 1 day events.

    What I tried to achieve is single event which is spread in multiple days. Examle: I wanna book a table today from 22:00 to 02:00, so I enter 2024-06-06 22:00 – 2024-06-07 02:00. Calendar now showing 2024-06-06 22:00-0200 and 2024-06-07 22:00-0200

    Maybe we just have a different approach.

    In any case, thank you for this plugin. Does’nt found anything with this simplicity and frontend events submission.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.