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

Setting Clock.Provider = ClockProviders.Utc does not display timezone-specific datetime values in front end #8980


User avatar
0
csona created

Hello,

I have made the Clock.Provider as UTC in the application and can see the timezone setting for tenants/users. However when I set to a specific region, I am not able to see the values correctly in that locale (for ex, Login Attempts)? The values that are already in the database would be done with UnspecifiedClockProvider as per the documentation. So what would be the expected behavior here or are we missing any steps in the frontend?

Thanks in advance.


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @chaitanya.sonavale,

    If you use UnspecifiedClockProvider, AspNet Zero doesn't normalize your date values. Do you use momentFormat pipe in your Angular page ? https://github.com/aspnetzero/aspnet-zero-core/blob/dev/angular/src/shared/utils/moment-format.pipe.ts

  • User Avatar
    0
    csona created

    Hi @ismcagdas,

    Thank you for getting back to me so quickly. I don't believe we are using momentFormat pipe in angular pages. I'll check and get back to you shortly.

    Meantime, Is there any link in asp.net zero/asp.net boilerplate docuementation regarding this?

    Thanks again.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Sorry, it is not documented. You are right, we must document it.