kiblee / tod0

A Terminal Client for Microsoft To-Do
MIT License
121 stars 19 forks source link

Cannot specify task as complete #40

Closed alinademi closed 2 years ago

alinademi commented 2 years ago

Describe the bug

First of all this is an amazing concept and cool cli tool. 👏🏼

When marking task as complete I get the following error:

/opt/homebrew/lib/python3.9/site-packages/todocli/utils/datetime_util.py:163: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html
  local_dt = tz.localize(dt, is_dst=None)

The error shows with todocli or tod0 regardless.

the task is marked as complete but the error pops up.

kiblee commented 2 years ago

Hi @alinademi . Fixed this in the recent update. Please upgrade tod0 with pip install --upgrade tod0. Thanks!

kiblee commented 2 years ago

Fixed in #39