<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><language>en</language><title>Blog posts by sheider-devnotes</title> <link>https://world.optimizely.com/blogs/sheider-devnotes/</link><description></description><ttl>60</ttl><generator>Optimizely World</generator><item> <title>.Net Core Timezone ID&#39;s Windows vs Linux</title>            <link>https://world.optimizely.com/blogs/sheider-devnotes/dates/2024/4/-net-core-timezone-ids-windows-vs-linux/</link>            <description>&lt;p&gt;Hey all,&lt;/p&gt;
&lt;p&gt;First post here and I would like to talk about Timezone ID&#39;s and How Windows and Linux systems use different IDs.&lt;/p&gt;
&lt;p&gt;We currently run a .NET Core site with Opti CMS and Customized Commerce (B2B Commerce) all hosted in DXC. And with our solution we had an automated process of what would be a scheduled publish of our commerce items.&lt;/p&gt;
&lt;p&gt;We identified we had issues where our commerce items would publish early. Our investigation found that if you are using Timzezone ID&#39;s or just using the OOB TimeZoneInfo, the results you get will vary from your local development in windows to where its deployed to, in our case DXC (Linux).&lt;/p&gt;
&lt;p&gt;With this in mind, we had to find a conversion nuget that would allow us to enter a windows timezone ID and allow it to auto convert it based on the environment it was deployed to.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/mattjohnsonpint/TimeZoneConverter&quot;&gt;https://github.com/mattjohnsonpint/TimeZoneConverter&lt;/a&gt; is the conversion nuget we use.&lt;/p&gt;
&lt;p&gt;**Notes to those on .net 6+ from that Repository listed above:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;.NET 6 has built-in support for IANA and Windows time zones in a cross-platform manner, somewhat reducing the need for this library. It relies on&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://docs.microsoft.com/dotnet/core/extensions/globalization-icu&quot;&gt;.NET&#39;s ICU integration&lt;/a&gt;&lt;span&gt;&amp;nbsp;to perform this functionality. See&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://devblogs.microsoft.com/dotnet/date-time-and-time-zone-enhancements-in-net-6/#time-zone-conversion-apis&quot;&gt;the .NET blog&lt;/a&gt;&lt;span&gt;&amp;nbsp;for details.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I Hope this information is useful to those of you who are working in .Net Core and are having issues with scheduled publish discrepencies.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Cheers,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Sean Heider&lt;/span&gt;&lt;/p&gt;</description>            <guid>https://world.optimizely.com/blogs/sheider-devnotes/dates/2024/4/-net-core-timezone-ids-windows-vs-linux/</guid>            <pubDate>Mon, 15 Apr 2024 14:54:36 GMT</pubDate>           <category>Blog post</category></item></channel>
</rss>