The Timezone setting options are not showing up for me in the settings.
I see there is this code that may be preventing it from showing in App\Views\Settings\Index.cshtml
@if (!ViewBag.IsMultiTenancyEnabled || Clock.SupportsMultipleTimezone)
What is the reason for clock.SupportsMultipleTimezone? Is that another setting or detected automatically?
Thanks!
6 Answer(s)
-
0
Hi,
Clock.SupportsMultipleTimezone is true only when you use UtcClockProvider for Clock.Provider. Maybe that is why you don't see timezone settings.
-
0
Thanks for the info, this resolved my issue.
More info on this can be found here: <a class="postlink" href="http://aspnetboilerplate.com/Pages/Documents/Timing">http://aspnetboilerplate.com/Pages/Documents/Timing</a>I set the value in the Core module PreInitialize() -- is this the correct location to set the value, or should it be set in Web module? It appears to work correctly.
Clock.Provider = ClockProviders.Utc;
-
0
Hi,
You can even set it in the Application_Start of Global.asax if you are not using ASP.NET Core version.
-
0
Where to set the clock provider in asp.net core mvc edition?
-
0
Hi @trendline,
You can do it in the PreInitialize of your Core module.
-
0
Done, thanks.