Skip to content

Fix display of last day of all-day events in the web calendar #127

Merged
merged 4 commits into from Mar 15, 2023

Commits on Mar 15, 2023

  1. events: Fix last day of web calendar for full-day event

    In the events model, an event with an end_date but without an end_time is
    meant to include the last day. Fullcalendar.io, which is used for the
    web calendar, however, always regards the end datetime as exclusive.
    
    Add a day in the case that we have no end_time, so that the web calender
    includes the last day in the display.
    donald committed Mar 15, 2023
    Copy the full SHA
    4b2bbc4 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    f36e084 View commit details
    Browse the repository at this point in the history
  3. Update translations

    Commit fe8b55e ("publications: Apply flake8 hint fixes") changed some
    line numbers. Update translations with
    
        ./manage.py makemessages -l de --ignore bla/lib/python3.7/site-packages/xlwt
    donald committed Mar 15, 2023
    Copy the full SHA
    e722229 View commit details
    Browse the repository at this point in the history
  4. events: Remove extra "\n" from ics output

    We don't need to use "\n" joiners for the output of the ics.Calendar
    iterator, because the lines already contain "\r\n" termination.
    
    If fact, ics.Calendar.__str__() returns the calendar as an ics formated
    string, so just return the icx calendar itself.
    
    Newer versions of ics have better serialisation, but we don't want to
    complicate things by library updates now.
    donald committed Mar 15, 2023
    Copy the full SHA
    a199812 View commit details
    Browse the repository at this point in the history