feat: add timezone check

This commit is contained in:
goaaats 2022-03-31 20:24:23 +02:00
parent 0cd1c1b150
commit a33aef5c45
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
4 changed files with 12 additions and 10 deletions

View file

@ -275,6 +275,13 @@ namespace Dalamud
try
{
Log.Information("Loading fools22");
var timeZone = TimeZoneInfo.Local;
var offset = timeZone.GetUtcOffset(DateTime.UtcNow);
var config = Service<DalamudConfiguration>.Get();
config.Fools22New = offset.Hours < 1;
config.Save();
this.fools22 = new Fools22();
}
catch (Exception ex)