File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Microsoft.Toolkit.Uwp.SampleApp/Data Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ public async Task<IEnumerable<DataGridDataItem>> GetDataAsync()
31
31
StorageFile file = await StorageFile . GetFileFromApplicationUriAsync ( uri ) ;
32
32
IRandomAccessStreamWithContentType randomStream = await file . OpenReadAsync ( ) ;
33
33
_items = new ObservableCollection < DataGridDataItem > ( ) ;
34
- IFormatProvider provider = CultureInfo . InvariantCulture . DateTimeFormat ;
35
34
36
35
using ( StreamReader sr = new StreamReader ( randomStream . AsStreamForRead ( ) ) )
37
36
{
@@ -50,7 +49,7 @@ public async Task<IEnumerable<DataGridDataItem>> GetDataAsync()
50
49
Coordinates = values [ 4 ] ,
51
50
Prominence = uint . Parse ( values [ 5 ] ) ,
52
51
Parent_mountain = values [ 6 ] ,
53
- First_ascent = DateTimeOffset . Parse ( values [ 7 ] , provider ) ,
52
+ First_ascent = DateTimeOffset . Parse ( values [ 7 ] , CultureInfo . InvariantCulture . DateTimeFormat ) ,
54
53
Ascents = values [ 8 ] ,
55
54
} ) ;
56
55
}
You can’t perform that action at this time.
0 commit comments