Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Disable receiving DateTime in UTC from Client for a specific property #8963


User avatar
1
alwefaq created

How can I receive a DateTime from the client exactly what the user choose without changing clock provider.

when the user choose a specific time, the server will receive it as UTC. I need to disable this behavior for a specific property, while keeping everything working as normal. I need to know exactly the selected time by the user.

Current behavior: Startup.cs - ClockProviders.Utc Client - 10:00 +3 Server - 07:00 +0

Trying to do: Startup.cs - ClockProviders.Utc Client - 10:00 +3 Server - 10:00 +3

---------------------------------------------- <span class="colour" style="color: rgb(0, 0, 0);">product version: </span>5.1.0<span class="colour" style="color: rgb(0, 0, 0);"><span class="colour" style="color: rgb(0, 0, 0);"> </span>.net core</span> Angular: 6.1.7 Angular  CLI: 6.2.3 Node: 12.13.0 OS: win32 x64


No answer yet!