Starts in:
2 DAYS
5 HRS
8 MIN
15 SEC
Starts in:
2 D
5 H
8 M
15 S
Open Closed

Timezone issue #7148


User avatar
0
n.uerkmez created
  • 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 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

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

  • User Avatar
    0
    n.uerkmez created

    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 created
    Support Team 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 created

    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 v9.1.0-preview. Updated on November 20, 2024, 13:06