Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Commit

Permalink
enable casting for datetime parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
aspriddell committed Feb 13, 2023
1 parent 4ed2ad2 commit 1f40bad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public async partial Task<bool> Migrate()
UbisoftId = player.ubisoft_id,
PlatformName = PlatformUtils.ToPlatformName((Platform)player.platform),

SavedAt = DateTimeOffset.Parse(player.account_added),
SavedAt = DateTimeOffset.Parse((string)player.account_added),
LastStatsUpdate = DateTimeOffset.MinValue
});
}
Expand All @@ -119,7 +119,7 @@ public async partial Task<bool> Migrate()
PlatformName = PlatformUtils.ToPlatformName((Platform)player.platform),

Username = player.account_name,
LastSearched = DateTimeOffset.Parse(player.last_searched_at)
LastSearched = DateTimeOffset.Parse((string)player.last_searched_at)
});
}

Expand Down

0 comments on commit 1f40bad

Please sign in to comment.