Skip to content

AttributeError: 'Date' object has no attribute 'strftime' #1237

@DarkRedman

Description

@DarkRedman

Context: Global generic exception

Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/GTG/gtk/browser/main_window.py", line 1060, in on_edit_active_task
    self.app.open_task(tid)
    ~~~~~~~~~~~~~~~~~~^^^^^
  File "/usr/lib/python3.13/site-packages/GTG/gtk/application.py", line 553, in open_task
    editor = TaskEditor(requester=self.req, app=self, task=task,
                        thisisnew=new, clipboard=self.clipboard)
  File "/usr/lib/python3.13/site-packages/GTG/gtk/editor/editor.py", line 98, in __init__
    self.recurring_menu = RecurringMenu(self.req, task.tid, self.builder)
                          ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/GTG/gtk/editor/recurring_menu.py", line 45, in __init__
    self.update_header()
    ~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/GTG/gtk/editor/recurring_menu.py", line 121, in update_header
    month_day=self.task.get_recurring_updated_date().strftime('%d')))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Date' object has no attribute 'strftime'

Software versions:

  • Getting Things GNOME! 0.6.0
  • CPython 3.13.7 (main, Aug 15 2025, 12:34:02) [GCC 15.2.1 20250813]
  • GTK 3.24.50, GLib 2.84.4
  • PyGLib 3.52.3, PyGObject 3.52.3
  • Linux-6.12.44-3-MANJARO-x86_64-with-glibc2.42

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions