Aperto Chiuso

Timezone issue #7148


User avatar
0
n.uerkmez creato
  • ABP Framework version: v8.1.1
  • UI Type: Angular
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue: Hi,

Host-API and auth-server applications are hosted in Azure as a web app (Linux). The database is Azure SQL Server. Unfortunately, we are having a timezone issue. There is 2-hour difference between our local and server time. Therefore, the application also works with server time. However, end users can see 2 hours earlier on the page.

I tried a few things like **WEBSITE_TIME_ZONE ='W. Europe Standard Time' ** on Azure Linux-based web server but I could not get any solution. How can I solve this problem on the ABP application side?

Thanks


4 risposte
  • User Avatar
    0
    liangshiwei creato
    Team di supporto Fullstack Developer

    Hi,

    Will this can help you? https://docs.abp.io/en/abp/latest/Timing

  • User Avatar
    0
    n.uerkmez creato

    Thanks for the feedback. I have already checked this documentation, before opening the ticket. But It does not help me much. If possible, can you write a code example for a global solution? How can I provide here Berlin Time zone? Configure<AbpClockOptions>(options => { options.Kind = DateTimeKind.Utc; });

    it must be valid in all modules (user, tenant). It should work according to Berlin Time Zone.

  • User Avatar
    0
    liangshiwei creato
    Team di supporto Fullstack Developer

    Hi,

    There is a discussion here:

    https://github.com/abpframework/abp/issues/13017

    You need to adjust the server's time zone correctly.

    Please let me know if it's not work.

  • User Avatar
    0
    n.uerkmez creato

    Thanks. I have found another workaround on the Azure Web App level. It resolved the problem generally(without changing the code ). You can close the ticket.

Made with ❤️ on ABP v8.2.0-preview Updated on marzo 25, 2024, 15:11