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

Timezone #8369


User avatar
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)
  • User Avatar
    0
    maliming created
    Support Team

    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.

  • User Avatar
    0
    ismcagdas created
    Support Team

    This issue is closed because of no recent activity. Please create a new issue if you are still having this problem.