Skip to content

DateTime Conversion to ISO 8601 Compliant Format  #30

@travis-hervey-pi

Description

@travis-hervey-pi

In the various places where DateTime is being converted to ISO 8601 formats, the format string is wrong and results in an API error when trying to filter by the times.

Example:

_query["modified_after"] = request.ModifiedAfter.Value.ToString("o0");

The above line produces "oO" as the time.

image

Proposed Solution:

The format string should be "0" which produces the ISO 8601 compliant time format.

_query["modified_after"] = request.ModifiedAfter.Value.ToString("o");

This looks like it needs to be applied to all the Client objects where filtering by a DateTime is possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions