added copy template function

This commit is contained in:
Sarah Faey 2022-12-08 22:01:54 +01:00
parent 1ac6cc64a6
commit 83f9b2d0b8
4 changed files with 41 additions and 4 deletions

View file

@ -18,7 +18,7 @@ namespace Lieb.Models.GuildWars2.Raid
public Raid() { }
public Raid(RaidTemplate template) : base(template, template.TimeZone)
public Raid(RaidTemplate template) : base(template, template.TimeZone, true)
{
TimeZoneInfo timeZone = TimeZoneInfo.FindSystemTimeZoneById(template.TimeZone);
StartTimeUTC = TimeZoneInfo.ConvertTimeToUtc(template.StartTime, timeZone);