Skip to content

Commit

Permalink
Merge pull request #201 from chihabhajji/patch-1
Browse files Browse the repository at this point in the history
Globalized and abbreviated month names in dashboard
  • Loading branch information
iammukeshm authored Jun 21, 2022
2 parents 92d2232 + 5e51cdd commit 698feea
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Client/Pages/Personal/Dashboard.razor.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using FSH.BlazorWebAssembly.Client.Infrastructure.ApiClient;
using System.Globalization;
using FSH.BlazorWebAssembly.Client.Infrastructure.ApiClient;
using FSH.BlazorWebAssembly.Client.Infrastructure.Notifications;
using FSH.BlazorWebAssembly.Client.Shared;
using FSH.WebApi.Shared.Notifications;
Expand All @@ -23,7 +24,7 @@ public partial class Dashboard
[Inject]
private ICourier Courier { get; set; } = default!;

private readonly string[] _dataEnterBarChartXAxisLabels = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };
private readonly string[] _dataEnterBarChartXAxisLabels = DateTimeFormatInfo.CurrentInfo.AbbreviatedMonthNames;
private readonly List<MudBlazor.ChartSeries> _dataEnterBarChartSeries = new();
private bool _loaded;

Expand Down Expand Up @@ -59,4 +60,4 @@ private async Task LoadDataAsync()
}
}
}
}
}

0 comments on commit 698feea

Please sign in to comment.