addon365 / b1ke-sh0wr00m

Apache License 2.0
0 stars 0 forks source link

Need to investigate on DateFormat in ASP Net core #43

Closed sathishid closed 5 years ago

sathishid commented 5 years ago

Appointment Date not saved is due to the DateFormat error, I have tried using following stack overflow approach, still issue there.

Note: I can see the issue using Postman itself. Stack Overflow Help: https://stackoverflow.com/questions/49976468/how-to-set-default-datetime-format-for-net-core-2-0-webapi

sathishid commented 5 years ago

This issue has been fixed, and it is due to below code snippets in Startup.cs. Code Snippet: options.SerializerSettings.DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Local; options.SerializerSettings.DateFormatString = "mm/dd/yyyy";

commit b9d037bfcb88ea4df26c5e565f043b91b516cd3d (HEAD -> master, origin/master) Merge: b2e5cff 5affc37 Author: Sathish Babu sathishbabur@hotmail.com Date: Thu Jun 13 09:53:39 2019 +0530

Merge branch 'master' of https://github.com/addon365/b1ke-sh0wr00m