abp icon indicating copy to clipboard operation
abp copied to clipboard

Remote service send Get Request datetime value change

Open fanslead opened this issue 3 years ago • 3 comments

the upstream request params:

{
  "dto": {
    "WebSiteId": null,
    "SystemId": null,
    "UserId": "47143529",
    "GiveTypeId": null,
    "Status": null,
    "CreationTimeFrom": "2022-09-13T14:25:30",
    "CreationTimeTo": "2022-10-31T00:00:00",
    "UsedTimeFrom": null,
    "UsedTimeTo": null,
    "ActiveTimeFrom": null,
    "ActiveTimeTo": null,
    "PageIndex": 1,
    "PageSize": 20,
    "Sorting": "CreationTime desc"
  }
}

the remote service request

HTTP request GET http://mission/api/app/admin/give-useds?UserId=47143529&CreationTimeFrom=2022-09-13T06%3A25%3A30.0000000Z&CreationTimeTo=2022-10-30T16%3A00%3A00.0000000Z&PageIndex=1&PageSize=20&Sorting=CreationTime+desc&api-version=1.0

the CreationTimeFrom and CreationTimeTo change. when use swagger ui send get request. it correct.

when use post request, remote service correct.

fanslead avatar Sep 14 '22 01:09 fanslead

hi

  • Steps needed to reproduce the problem.

maliming avatar Sep 15 '22 00:09 maliming

  1. A service use B service HttpApi.Client.
  2. Request A service api, and A service transpond request params to B Service without any change. When B service api use HTTP GET. the datetime value will be change. like 2022-09-13T14:25:30 => 2022-09-13T06:25:30.0000000Z. Modify HTTP GET to HTTP POST, the datetime value correct.

fanslead avatar Sep 15 '22 07:09 fanslead

hi

Please share details steps, Thanks.

maliming avatar Sep 15 '22 07:09 maliming

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.

stale[bot] avatar Nov 22 '22 19:11 stale[bot]