how do i set the date before submission to api?

I assume you use DateTime type in your DTO models on server side. DateTime does not contain any info about timezone, so I assume that json serealizer converts it into UTC if the target type cannot keep timezone info (if the target type is DateTime).

Please try to use DateTimeOffset type instead. Let me know if it helps.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top