Skip to content

VTODO's Last-Modified without 'Z' #177

Description

@tieugene

According to RFC-5545

The property value MUST be specified in the UTC time format

(e.g. LAST-MODIFIED:20210326T212333Z)
Storing datetime.datetime.utcnow() produces localtime format (w/o 'Z').
Using datetime.datetime.now(datetime.timezone.utc) produces error:

  File "/usr/local/lib/python3.9/site-packages/vobject/base.py", line 226, in transformFromNative
    raise NativeError(msg, lineNumber)
vobject.base.NativeError: At line 18: In transformFromNative, unhandled exception on line 18 <class 'vobject.base.VObjectError'>: 'Unable to guess TZID for tzinfo UTC'

Maybe this is linked with another bureport #154

PS. macOS 15.7 'Catalina', vobject 0.9.6.1 from brew

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions