mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-02 05:43:40 +01:00
feat: add timezone check
This commit is contained in:
parent
0cd1c1b150
commit
a33aef5c45
4 changed files with 12 additions and 10 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue