- 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)
-
0
Hi,
Will this can help you? https://docs.abp.io/en/abp/latest/Timing
-
0
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.
-
0
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.
-
0
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.