Skip to content

Manila may choke on dates with UTC offset #2507

@mandre

Description

@mandre

While reviewing #2496 we noticed that Manila can return dates as ISO 8601 with an UTC offset that the sharedfilesystems module doesn't know how to parse.

We expect the 2006-01-02T15:04:05.999999 format for JSONRFC3339MilliNoZ, which is different from what Manila claims to return:

The date and time stamp format is ISO 8601:

CCYY-MM-DDThh:mm:ss±hh:mm

The ±hh:mm value, if included, returns the time zone as an offset from UTC.

For example, 2019-03-27T09:49:58-05:00.

Playing a little bit with it, it seems to break as soon as the date include an UTC offset: https://go.dev/play/p/pJh7jLgonx6. It looks like we're just being lucky.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions