Skip to content

Commit d029f89

Browse files
committed
use virtual time for graph
also show today in graph
1 parent a0900e2 commit d029f89

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/PostSharp.LicenseServer/Graph.aspx.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
using System.Globalization;
1313
using System.Linq;
1414
using System.Web.UI;
15-
using PostSharp.Sdk.Extensibility.Licensing;
1615
using ParsedLicense = PostSharp.Sdk.Extensibility.Licensing.License;
1716

1817
namespace PostSharp.LicenseServer
@@ -35,8 +34,8 @@ protected override void OnLoad(EventArgs e)
3534
LicenseId = int.Parse(this.Request.QueryString["id"]);
3635

3736
Days = int.Parse( this.Request.QueryString["days"] ?? "30" );
38-
;
39-
DateTime endDate = DateTime.Today;
37+
38+
DateTime endDate = VirtualDateTime.UtcNow.Date.AddDays(1);
4039
DateTime startDate = endDate.AddDays( -Days );
4140

4241
// Retrieve license information.

0 commit comments

Comments
 (0)