Skip to content

Rfc3339DateJsonAdapter puts the wrong zone on dates like "2025-11-20" #2046

@swankjesse

Description

@swankjesse

Given a date with no time component like "2025-11-20", Moshi will use the host computer’s time zone instead of UTC.

This problem doesn’t occur if the date has a zone suffix like "2025-11-20Z".

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