Skip to content

Commit b39d70f

Browse files
Merge pull request #4476 from HEIGE-PCloud/fix/datagrid
Fix DataGrid crash in Sample App
2 parents a39654c + acc7f48 commit b39d70f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Microsoft.Toolkit.Uwp.SampleApp/Data/DataGridDataSource.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System;
66
using System.Collections.Generic;
77
using System.Collections.ObjectModel;
8+
using System.Globalization;
89
using System.IO;
910
using System.Linq;
1011
using System.Text;
@@ -48,7 +49,7 @@ public async Task<IEnumerable<DataGridDataItem>> GetDataAsync()
4849
Coordinates = values[4],
4950
Prominence = uint.Parse(values[5]),
5051
Parent_mountain = values[6],
51-
First_ascent = DateTimeOffset.Parse(values[7]),
52+
First_ascent = DateTimeOffset.Parse(values[7], CultureInfo.InvariantCulture.DateTimeFormat),
5253
Ascents = values[8],
5354
});
5455
}

0 commit comments

Comments
 (0)