diff --git a/Logic/Financial/ExternalBankData.cs b/Logic/Financial/ExternalBankData.cs index f96aace4..f2d32bea 100644 --- a/Logic/Financial/ExternalBankData.cs +++ b/Logic/Financial/ExternalBankData.cs @@ -166,6 +166,10 @@ namespace Swarmops.Logic.Financial TimeSpan timeZone = TimeSpan.Parse(timeZoneString); dateTime -= timeZone; // minus, to bring the time to UTC. If time 13:00 is in tz +01:00, the UTC time is 12:00 + + // Then move from UTC to local time, to match various bookkeeping laws. TODO: local time per organization, perhaps? + + dateTime = dateTime.ToLocalTime(); } // PILOT SPECIAL CASE: if Paypal and PPSE Pilot program, ignore everything before 2014 diff --git a/Site5/Pages/v5/Ledgers/UploadBankFiles.aspx b/Site5/Pages/v5/Ledgers/UploadBankFiles.aspx index 743b1de3..1e1dca90 100644 --- a/Site5/Pages/v5/Ledgers/UploadBankFiles.aspx +++ b/Site5/Pages/v5/Ledgers/UploadBankFiles.aspx @@ -136,7 +136,11 @@ setTimeout('updateProgressProcessing();', 1000); } - } + }, + error: function(msg) { + // Retry on call error, too + setTimeout('updateProgressProcessing();', 1000); + } }); } diff --git a/Site5/Pages/v5/Ledgers/UploadBankFiles.aspx.cs b/Site5/Pages/v5/Ledgers/UploadBankFiles.aspx.cs index eecf50e8..57ffa0ff 100644 --- a/Site5/Pages/v5/Ledgers/UploadBankFiles.aspx.cs +++ b/Site5/Pages/v5/Ledgers/UploadBankFiles.aspx.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Globalization; using System.IO; +using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading; @@ -527,7 +528,7 @@ namespace Swarmops.Site.Pages.Ledgers progressUpdateInterval = 100; } - foreach (ExternalBankDataRecord row in import.Records) + foreach (ExternalBankDataRecord row in import.Records) { // Update progress.