Aperto Chiuso

Timezone Binders and Converter #1066


User avatar
0
Leonardo.Willrich creato
  • ABP Framework version: v4.2.2
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:

Hi,

I have a global system, it will be used in Canada, USA, Australia, and New Zealand, and I am trying to understand how ABP.IO Blazor UI template works with timezone with Entity Framework Core and PostGres database.

I am familiar how Boilerplate works with timezone with AspNetZero MVC .NetCore + JQuery. However, I am struggling to understand how I should implement that in ABP.IO Blazor Template. I have already read this document: https://docs.abp.io/en/abp/latest/Timing

I was wondering if there is some binders and converter for Web API methods similar as implemented by Boilerplate. See this document: https://aspnetboilerplate.com/Pages/Documents/Timing#binders-and-converters

Is there some example how to deal with timezones for Blazor template, in both ways, going from the client to the database and then from the database back to the client?


2 risposte
  • User Avatar
    0
    maliming creato
    Team di supporto Fullstack Developer

    hi

    When Blazor uses application services to make remote API calls, the framework handles the time.

    In Blazor UI you can try to use ITimezoneProvider to handle the time zone base on time zone settings.

    https://docs.abp.io/en/abp/latest/Timing#itimezoneprovider

  • User Avatar
    0
    ServiceBot creato
    Team di supporto Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

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