Skip to content

Commit

Permalink
Merge pull request #4476 from HEIGE-PCloud/fix/datagrid
Browse files Browse the repository at this point in the history
Fix DataGrid crash in Sample App
  • Loading branch information
michael-hawker authored Feb 4, 2022
2 parents a39654c + acc7f48 commit b39d70f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Microsoft.Toolkit.Uwp.SampleApp/Data/DataGridDataSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
Expand Down Expand Up @@ -48,7 +49,7 @@ public async Task<IEnumerable<DataGridDataItem>> GetDataAsync()
Coordinates = values[4],
Prominence = uint.Parse(values[5]),
Parent_mountain = values[6],
First_ascent = DateTimeOffset.Parse(values[7]),
First_ascent = DateTimeOffset.Parse(values[7], CultureInfo.InvariantCulture.DateTimeFormat),
Ascents = values[8],
});
}
Expand Down

0 comments on commit b39d70f

Please sign in to comment.