Skip to content

Google Calendar plugin: fractional-second timestamps lose their explicit UTC offset #13149

Closed

Description

@kaijakagi-sys

In plugins/omi-google-calendar-app/main.py at 9ff63a6, parse_datetime preserves an explicit offset when the input matches its strptime formats, but the ISO fallback strips tzinfo without converting the instant. The create/update handlers then attach timeZone: UTC to that naive wall time.

Executing the unchanged parser in isolation gives:

Input Parsed value
2026-09-09T14:00:00+05:30 2026-09-09T14:00:00+05:30
2026-09-09T14:00:00.123+05:30 2026-09-09T14:00:00.123000

The second input denotes 08:30:00.123 UTC, but the constructed event payload labels 14:00:00.123 as UTC. Fractional precision should not change the instant by five and a half hours.

I propose a focused fix that preserves explicit ISO offsets consistently through parsing and create/update payload construction, with hermetic regression tests for positive/negative offsets, fractional/non-fractional seconds, UTC Z, date-only all-day inputs, and invalid inputs. Relative-date behavior, user timezone preferences, OAuth, auto-sync and the separate backend calendar integration would remain out of scope.

Verification so far: eight offline create/update payload checks using the unchanged production parser and both handlers, with request/auth/provider-response stubs. Positive and negative fractional offsets lose their timezone; non-fractional offset and date-only controls retain their existing behavior. The Calendar event contract requires a dateTime offset unless timeZone is specified. No live Google Calendar request, deployed reproduction, implementation or passing preflight claim. Searches of existing issues and PRs did not identify this exact plugin parser defect; #8312/#8495 touch the separate backend integration, and #6192 adds sync without changing this parser.

Is this standalone plugin still supported, and would you accept this scope as a paid bounty? @josancamon19, following the contribution guide's bounty-suggestion process, please confirm the cash reward and acceptance criteria before implementation. This is a bounty request, not an approved award.

Activity

  1. moved this from Someday to In progress in omi TODO / bountieson Sep 9, 2026
  2. Nukeys commented on Sep 11, 2026

    @Nukeys
    Contributor

    Opened PR #13528. ISO offsets are converted to UTC wall time before attaching timeZone: UTC.

  3. moved this from In progress to In review in omi TODO / bountieson Sep 12, 2026
  4. added a commit that references this issue on Sep 12, 2026
    9ea409c
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

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions