diff --git a/Site/Automation/Json-PositionsTree.aspx.cs b/Site/Automation/Json-PositionsTree.aspx.cs index f6c9cd45..f51d2192 100644 --- a/Site/Automation/Json-PositionsTree.aspx.cs +++ b/Site/Automation/Json-PositionsTree.aspx.cs @@ -224,10 +224,10 @@ namespace Swarmops.Frontend.Automation assignments[0].PersonId == CurrentUser.Identity ? "self='true'" : string.Empty); } - int expireYear = assignments[assignmentCount].ExpiresDateTimeUtc.Year; - if (expireYear > 2000 && expireYear < 3000) // as in, "is defined" + DateTime expiresUtc = assignments[assignmentCount].ExpiresDateTimeUtc; + if (expiresUtc.IsDefined()) { - expires = assignments[assignmentCount].ExpiresDateTimeUtc.ToString ("yyyy-MMM-dd"); + expires = expiresUtc.ToString ("yyyy-MMM-dd"); } element = String.Format ( diff --git a/Site/Controls/v5/Swarm/TreePositions.ascx.cs b/Site/Controls/v5/Swarm/TreePositions.ascx.cs index a96ca7f8..da3b99bf 100644 --- a/Site/Controls/v5/Swarm/TreePositions.ascx.cs +++ b/Site/Controls/v5/Swarm/TreePositions.ascx.cs @@ -19,7 +19,6 @@ namespace Swarmops.Frontend.Controls.Swarm protected void Page_Load (object sender, EventArgs e) // PreRender to make sure teh DropDuration control exists { - this.DropPerson.Placeholder = Resources.Global.Swarm_TypeName; Localize(); }