diff --git a/oadrlib/lib/oadr2b/RegisterReport.cs b/oadrlib/lib/oadr2b/RegisterReport.cs index 89fe51f..4acdde4 100644 --- a/oadrlib/lib/oadr2b/RegisterReport.cs +++ b/oadrlib/lib/oadr2b/RegisterReport.cs @@ -83,6 +83,15 @@ public string createRegisterReport(string requestID, string venID, Dictionary reportIntervals = m_reportIntervals.Values.ToList().OrderBy(o => o.dtstart.datetime).ToList(); - reportIntervals.Reverse(); + // Test Case R1_3160_TH_VTN_1: Based on OpenADR specifications, intervals have to be + // in ascending order. Reversing it here converts it into descending order. + //reportIntervals.Reverse(); // the dtstart of the report must match the dtstart of the first interval report.dtstart = new dtstart();