Got rid of a few DateTime.MinValue that MySQL doesn't like

This commit is contained in:
Rick Falkvinge
2017-01-15 20:49:42 +01:00
parent 6750d47b4b
commit 2f0481e310
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -550,7 +550,7 @@ namespace Swarmops.Database
public int CreatePerson(string name, string email)
{
return CreatePerson (name, email, string.Empty, string.Empty, string.Empty, string.Empty, 0,
DateTime.MinValue, PersonGender.Unknown);
new DateTime(1800,1,1), PersonGender.Unknown);
}
protected void SetPersonBasicStringValue (int personId, string key, string newValue)
+1 -1
View File
@@ -85,7 +85,7 @@ namespace Swarmops.Logic.Swarm
public static Participations GetExpired (Organization organization)
{
return
FromArray (SwarmDb.GetDatabaseForReading().GetExpiringParticipations (organization, DateTime.MinValue,
FromArray (SwarmDb.GetDatabaseForReading().GetExpiringParticipations (organization, new DateTime(1800,1,1),
DateTime.Now));
}
@@ -61,12 +61,12 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
if (renderPresentTime)
{
ledgerExpectedCents = balanceAccount.GetDeltaCents (DateTime.MinValue, DateTime.MaxValue);
ledgerExpectedCents = balanceAccount.GetDeltaCents (new DateTime (1800,1,1), DateTime.MaxValue);
// get ALL transactions
}
else
{
ledgerExpectedCents = balanceAccount.GetDeltaCents (DateTime.MinValue, targetDateTime);
ledgerExpectedCents = balanceAccount.GetDeltaCents (new DateTime(1800,1,1), targetDateTime);
}
if (reverseLedgerSign)