Vulnerability in EPiServer.Forms
I need to use the GetDaylightSavingsOffsets() method, we're currently doing a migration from Opti10 to Opti12 .net core but that method does not longer exist in the Mediachase.Commerce. Does anyone know if the method exist in other namespace? Or doesn't the method exist anymore? If the method is no longer available does anyone else was able to replace the method with another one or does exist a workaround to replace its funcionality?
Any help is really appreciate it.
Thanks in advance,
Commerce Manager was removed in Commerce 14 (which is compatible to CMS 12) so any features were removed. If you really need the functionality, here's how the code was written
protected void GetDaylightSavingsOffsets(out int offset_dt, out int offset_st)
offset_dt = Convert.ToInt32(new DateTimeOffset(DateTime.Now).Offset.TotalHours);
offset_st = DateTime.Now.IsDaylightSavingTime() ? offset_dt - 1 : offset_dt;
That is what I needed.