-
Notifications
You must be signed in to change notification settings - Fork 543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
after install persian language (fa) #3282
Comments
I am not sure how this could happen. lastSyncDate is initialized to DateTime.MinValue for a new request and ToString("yyyyMMddHHmmssfff") converts it to a string. This would seem to be a bug in the PersianCalendar class? |
I also have this problem after installation and occurred below error : [2023-09-26 17:02:37+00:00] [Error] Connection ID "18230571306091282446", Request ID "8000001a-0003-fd00-b63f-84710c7967bb": An unhandled exception was thrown by the application. |
@Mostafa-Moafi I apologize... I was under the impression that another team member was merging the PRs in the localization repo... but it appears that is not the case. I will merge your PR now. |
ArgumentOutOfRangeException: Specified time is not supported in this calendar. It should be between 0001/1/1 0:00:00 (Gregorian date) and 9378/10/13 23:59:59 (Gregorian date), inclusive. (Parameter 'time') Actual value was 0.
System.Globalization.PersianCalendar.CheckTicksRange(long ticks)
System.Globalization.PersianCalendar.GetDatePart(long ticks, int part)
System.Globalization.PersianCalendar.GetYear(DateTime time)
System.DateTimeFormat.FormatCustomized(DateTime dateTime, ReadOnlySpan format, DateTimeFormatInfo dtfi, TimeSpan offset, ref ValueStringBuilder result)
System.DateTimeFormat.FormatStringBuilder(DateTime dateTime, ReadOnlySpan format, DateTimeFormatInfo dtfi, TimeSpan offset, ref ValueStringBuilder result)
System.DateTimeFormat.Format(DateTime dateTime, string format, IFormatProvider provider, TimeSpan offset)
Oqtane.Services.SyncService.GetSyncEventsAsync(DateTime lastSyncDate) in SyncService.cs
21. return await GetJsonAsync<Sync>($"{ApiUrl}/{lastSyncDate.ToString("yyyyMMddHHmmssfff")}");
Oqtane.UI.SiteRouter.Refresh() in SiteRouter.razor
173. var sync = await SyncService.GetSyncEventsAsync(lastsyncdate);
Oqtane.UI.SiteRouter.OnParametersSetAsync() in SiteRouter.razor
72. await Refresh();
Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
The text was updated successfully, but these errors were encountered: