jQuery UI Widgets Forums Scheduler Strange beahvior in date and time selection

This topic contains 2 replies, has 2 voices, and was last updated by  MichaelIP 8 years, 9 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author

  • MichaelIP
    Participant

    Hello,
    When creating a new appointment, I notice a strange behaviour:
    Per default, the appointment is ‘allDay’ duration.
    Once unchecked this property, I can select time for starting and ending time for my appointment.

    If I change the end time, the end date is changed also to the day after the initial date.
    Explanation:
    From field is set to 2015-01-06 00:00:00 (seconds not shown)
    To field is set to 2015-01-06 23:59:59 (seconds not shown)

    If I change the From field (hour part set to 15:00), the To field is updated also in order to keep the original appointment duration.
    So that, the To field is now set to 2015-01-07 14:59:59 ! And we then need to set the time then to restore the correct date.

    Even worth, if I change the To field before changing to From field, when changing the From field, the To field is also changed, still in order to keep the appointment duration.

    Is there a way to avoid this way, ie enable to losing of appointment duration when changind times ?

    Many thanks.


    Peter Stoev
    Keymaster

    Hi MichaelIP,

    That’s how it works by design and actually allDay is not default as I explained in another thread. If you want to customize that behavior, you are able to replace the built-in DateTimeInput widgets in the Edit dialog using the Scheduler’s events and use jqxDateTimeInput to create other kind of logic for choosing from and to dates.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    MichaelIP
    Participant

    Well… I will try the solution you mentioned… but not now !

    Many thanks meanwhile for your answer.
    I just hope it won’t be to much difficult changing this.

    Many thanks again.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.