Got rid of a few DateTime.MinValue that MySQL doesn't like
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user