Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Timezone setting #5315


User avatar
0
mikatmlvertti created

Hi

I updated our project with Angular + Core 5.5 template and now timezone selection is not as good as it used to be. There are fewer options and user can't see the hour offset. For example if you want to select Helsinki timezone, you would have to select "Egypt".

I tried to change TimeZoneService to get KnownIanaTimeZoneNames but, when I select Europe/Helsinki, I get exception: System.Exception: Unable to map Europe/Helsinki to iana timezone. at Abp.Timing.Timezone.TimezoneHelper.WindowsToIana(String windowsTimezoneId) in D:\Github\aspnetboilerplate\src\Abp\Timing\Timezone\TimezoneHelper.cs:line 45

So can you provide any workaround for this issue?


3 Answer(s)
  • User Avatar
    0
    alper created
    Support Team

    Specified timezone might not exist in your server. See <a class="postlink" href="https://github.com/mj1856/TimeZoneConverter/issues/4">https://github.com/mj1856/TimeZoneConverter/issues/4</a>. I don't your AspNet Zero version but ensure this issue is fixed in your solution <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/1177">https://github.com/aspnetzero/aspnet-ze ... ssues/1177</a>.

    Lastly, see the same issues that have been already fixed

  • User Avatar
    0
    mikatmlvertti created

    I think we have latest codes. It is just that now finnish users need to select FLE Standard Time. I didn't know that without googling, so I doubt that normal user is not able to figure it out either. I think that there was better options before updating.. We propably need to put a link to [https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones]) so users can check it out if they are unsure as I was.

  • User Avatar
    0
    ismcagdas created
    Support Team

    @MikaTmlVertti you are right about new names of timezones but we had to do this for cross platform support. We don't want to maintain timeone names. You can create an issue on <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues">https://github.com/aspnetzero/aspnet-zero-core/issues</a> and we can try to find a way to overcome this problem.