Replaced all DateTime.MinValue with Constants.DateTimeLow

This commit is contained in:
Rick Falkvinge
2017-01-16 01:38:07 +01:00
parent f109c1daa1
commit 42a171c9fd
31 changed files with 66 additions and 41 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
using System;
using System.IO;
using System.Text;
using Swarmops.Common;
using Swarmops.Logic.Support;
namespace Swarmops.Utility.BotCode
@@ -11,7 +12,7 @@ namespace Swarmops.Utility.BotCode
private static readonly object lockObject = new object();
private bool FlagRestartRequested;
private DateTime lastBeat = DateTime.MinValue;
private DateTime lastBeat = Constants.DateTimeLow;
private string lastFilename = "";
public bool WasKilled
+2 -2
View File
@@ -55,7 +55,7 @@ namespace Swarmops.Utility.BotCode
RssReader reader = new RssReader(readerFeedUrl);
People recipients = null;
DateTime highWaterMark = DateTime.MinValue;
DateTime highWaterMark = Constants.DateTimeLow;
string persistenceKey = "Newsletter-Highwater-" + personId.ToString();
string highWaterMarkString = Persistence.Key[persistenceKey];
@@ -66,7 +66,7 @@ namespace Swarmops.Utility.BotCode
}
catch (FormatException)
{
highWaterMark = DateTime.MinValue;
highWaterMark = Constants.DateTimeLow;
}
catch (Exception e)
{
+2 -1
View File
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using NRss;
using Swarmops.Common;
using Swarmops.Common.Enums;
using Swarmops.Logic.Communications;
using Swarmops.Logic.Media;
@@ -30,7 +31,7 @@ namespace Swarmops.Utility.BotCode
{
string persistenceKey = String.Format ("Pressrelease-Highwater-{0}", persistAsKey);
DateTime highWaterMark = DateTime.MinValue;
DateTime highWaterMark = Constants.DateTimeLow;
RssReader reader = null;