Base solution for your next web application
Open Closed

TimeZone Issues #11785


User avatar
0
maharatha created

Currently we are using the latest version of AspnetZero Angular version.

I enable time zones functionality in my application by adding following line of code to ONEWebCoreModule.cs

Clock.Provider = ClockProviders.Utc;

After adding the above line of code when I select any date in a calendar control inside my application, it picks the previous day's date. For example if I select 11/20/2023 on calendar it will show 11/19/2023.

Do we know whats going on here ?


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

    Hi @maharatha

    Could you also share your app type (Angular or MVC) and its version ? By the way, is it saved to DB as previous day or is it shown on the UI ?

  • User Avatar
    0
    maharatha created

    Sorry its Angular and NET 7.0 v12.2.0.

    Its getting displayed in the UI

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @maharatha

    Is it possible to share your project via email with [email protected] ? It will be faster to detect the problem that way.

    Thanks,

  • User Avatar
    0
    maharatha created

    I am working on it

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks, waiting for your email.