Skip to content

Instantly share code, notes, and snippets.

@jskeet
Created November 5, 2023 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jskeet/c4dcb388d828dc2a1e8f4773e0088f45 to your computer and use it in GitHub Desktop.
Save jskeet/c4dcb388d828dc2a1e8f4773e0088f45 to your computer and use it in GitHub Desktop.
Program.cs
using NodaTime;
using System;
using System.Globalization;
Console.WriteLine(TimeZoneInfo.Local.Id);
Console.WriteLine(DateTimeZoneProviders.Tzdb.GetSystemDefault().Id);
Environment.SetEnvironmentVariable("TZ", "Europe/Paris");
TimeZoneInfo.ClearCachedData();
Console.WriteLine(TimeZoneInfo.Local.Id);
Console.WriteLine(DateTimeZoneProviders.Tzdb.GetSystemDefault().Id);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment