Skip to content

Commit

Permalink
save all datetime-objects in UTC for improved syncing.
Browse files Browse the repository at this point in the history
  • Loading branch information
cadaei committed Sep 28, 2019
1 parent 3ed4ac2 commit 1c5d662
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ARKBreedingStats/Form1.collection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ private void SaveCollectionToFileName(string filePath)
{
JsonSerializer serializer = new JsonSerializer()
{
Formatting = Properties.Settings.Default.prettifyCollectionJson ? Formatting.Indented : Formatting.None
Formatting = Properties.Settings.Default.prettifyCollectionJson ? Formatting.Indented : Formatting.None,
DateTimeZoneHandling = DateTimeZoneHandling.Utc // save all date-times as UTC, so synced files don't change the timezones
};
serializer.Serialize(file, creatureCollection);
}
Expand Down

0 comments on commit 1c5d662

Please sign in to comment.