Skip to content

No way to affect how AddObject serializes DateTimes #1631

Closed

Description

@IgorShch

Expected Behavior

Would be great to be able to set a date format used when adding parameters through AddObject method

Actual Behavior

Currently there is no way to affect how dates are serialized into parameters.

https://github.com/restsharp/RestSharp/blob/dev/src/RestSharp/RestRequest.cs#L318

Activity

  1. alexeyzimarev commented on Dec 13, 2021

    @alexeyzimarev
    Member

    I'd suggest proposing a fix. We just call ToString on every property except collections.

  2. AR1ES commented on Feb 4, 2022

    @AR1ES

    Faced the same problem.
    Also I need to properly format floating point values.

  3. stale commented on Apr 16, 2022

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  4. repo-ranger commented on Apr 16, 2022

    @repo-ranger

    ⚠️ This issue has been marked wontfix and will be closed in 3 days

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions