0
sophoana created
Hi support,
I have problem with timezone, when I input 02/01/2020 while backend store 01/01/2020 17:00:00 I don't know why. I'm use moment to store date frontend.
Angular 7 ASP.net Core
code:
<input
id="GeneralJournalDate"
type="datetime"
#GeneralJournalDate
name="GeneralJournalDate"
class="form-control"
bsDatepicker
[(ngModel)]="generalJournal.date"
autocomplete="new-password">
2 Answer(s)
-
0
Are you using Utc ClockProviders?
https://aspnetboilerplate.com/Pages/Documents/Timing#binders-and-converters
If the UTC clock provider is used, then all DateTimes stored in the database are assumed as UTC values, and all DateTimes received from clients are assumed as UTC values unless explicitly specified.
-
0
This issue is closed because of no recent activity. Please create a new issue if you are still having this problem.