-
Notifications
You must be signed in to change notification settings - Fork 58
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
Bug: Custom date format breaks repos #449
Comments
Thank you for the feedback. I guess Chinese version date time string is not recognized as a valid DataTime conversion target. I'm gonna investigate the cause and fix, but note that I don't have much time these days. |
This issue is not related to Chinese DateTime format. Instead, it is about the date format being set in a format that is not default for the system, as explained by
|
Cannot reproduce after 4 attempts with different time format combinations, exactly matching the ones shown by @BreadKat0707 and |
It's also weird to me that the bug for me occured on the date of a seemingly random commit from the repository. Why not one of the other commits? |
Looks like you've changed the time format - the issue is with the short date one. |
How do you mean? |
Before you start
What version of Windows is this issue present?
Windows 11 Dev
What version/architecture of FluentHub are you on?
0.8.60.0 | X64 | RELEASE
Description
When I try to open a repository, the page content flashes and then says Something went wrong string "time" was not recognized as a valid datetime
Steps To Reproduce
No response
Expected behavior
Successfully open a repo page
Stack Trace
Stack trace details
at System.DateTimeOffset.Parse(String input)
at FluentHub.Octokit.Queries.Repositories.TreeQueries.GetWithObjectNameAsync(String name, String owner, String refs, String path)
at FluentHub.App.ViewModels.Repositories.Codes.DetailsLayoutViewModel.LoadRepositoryContentsAsync(String login, String name, String branch, String path)
at FluentHub.App.ViewModels.Repositories.Codes.DetailsLayoutViewModel.LoadDetailsViewPageAsync()
Assets
2023-12-31 22:18:50.777 +08:00 [ERR] LoadRepositoryContentsAsync
System.FormatException: String '2023.12.31.星期日 上午 08:28:59' was not recognized as a valid DateTime.
at System.DateTimeOffset.Parse(String input)
at FluentHub.Octokit.Queries.Repositories.TreeQueries.GetWithObjectNameAsync(String name, String owner, String refs, String path)
at FluentHub.App.ViewModels.Repositories.Codes.DetailsLayoutViewModel.LoadRepositoryContentsAsync(String login, String name, String branch, String path)
at FluentHub.App.ViewModels.Repositories.Codes.DetailsLayoutViewModel.LoadDetailsViewPageAsync()
2023-12-31 22:20:18.782 +08:00 [ERR] LoadRepositoryContentsAsync
System.FormatException: String '2023.03.29.星期三 上午 10:04:46' was not recognized as a valid DateTime.
at System.DateTimeOffset.Parse(String input)
at FluentHub.Octokit.Queries.Repositories.TreeQueries.GetWithObjectNameAsync(String name, String owner, String refs, String path)
at FluentHub.App.ViewModels.Repositories.Codes.DetailsLayoutViewModel.LoadRepositoryContentsAsync(String login, String name, String branch, String path)
at FluentHub.App.ViewModels.Repositories.Codes.DetailsLayoutViewModel.LoadDetailsViewPageAsync()
The text was updated successfully, but these errors were encountered: