Compare commits
2 Commits
f8559bbe06
...
fbd5a66156
Author | SHA1 | Date | |
---|---|---|---|
fbd5a66156 | |||
0be0896e91 |
@ -102,7 +102,7 @@ public class Entry {
|
||||
this.datetime = json.GetValue("timestamp")?.ToString();
|
||||
|
||||
if (!string.IsNullOrEmpty(this.datetime)) {
|
||||
this.timestamp = DateTime.Parse(this.datetime);
|
||||
this.timestamp = DateTime.Parse(this.datetime, null, System.Globalization.DateTimeStyles.RoundtripKind);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -68,11 +68,12 @@ public partial class MainWindow : Window {
|
||||
TransactionParser parser = new TransactionParser();
|
||||
List<Transaction> transactions = parser.Parse(entries);
|
||||
|
||||
List<IncompleteTransaction> incompletes = transactions.OfType<IncompleteTransaction>().ToList();
|
||||
// Log incomplete and remove them from the results.
|
||||
foreach (var incomplete in transactions.OfType<IncompleteTransaction>()) {
|
||||
foreach (var incomplete in incompletes) {
|
||||
Log(incomplete.Reason);
|
||||
transactions.Remove(incomplete);
|
||||
}
|
||||
transactions.RemoveAll(x => incompletes.Contains(x));
|
||||
|
||||
report = new Report(transactions);
|
||||
this.entries.ItemsSource = report.Objectives;
|
||||
|
Loading…
Reference in New Issue
Block a user