Skip to content

AttributeError: 'datetime.date' object has no attribute 'astimezone' #85

@bwurst

Description

@bwurst

When I issue the command
calendar-cli calendar agenda
against my nextcloud 20.0 server, I get the error

  File "/usr/local/lib/python3.9/dist-packages/calendar_cli-0.12.1-py3.9.egg/EGG-INFO/scripts/calendar-cli", line 992, in <module>
  File "/usr/local/lib/python3.9/dist-packages/calendar_cli-0.12.1-py3.9.egg/EGG-INFO/scripts/calendar-cli", line 983, in main
  File "/usr/local/lib/python3.9/dist-packages/calendar_cli-0.12.1-py3.9.egg/EGG-INFO/scripts/calendar-cli", line 534, in calendar_agenda
AttributeError: 'datetime.date' object has no attribute 'astimezone'

when an all day event is to be displayed. When no such event is visible in the specified date range, the error goes away.

calendar-cli is installed in debian stable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions