Skip to content

Commit c134077

Browse files
Setting DateContexts on Timescopes
1 parent 1716d45 commit c134077

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

ISOv4Plugin/Mappers/AllocationStampMapper.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ public static IEnumerable<TimeScope> ImportAllocationStamps(IEnumerable<ISOAllo
8989
public static TimeScope ImportAllocationStamp(ISOAllocationStamp isoAllocationStamp)
9090
{
9191
TimeScope adaptTimeScope = new TimeScope();
92+
adaptTimeScope.DateContext = DateContextEnum.ActualStart;
9293
adaptTimeScope.TimeStamp1 = isoAllocationStamp.Start;
9394

9495
//[Check] AllocationStamp XML element: a recording with only the Start attribute defined is allowed

ISOv4Plugin/Mappers/TaskMapper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,7 @@ private Summary ImportSummary(ISOTask isoLoggedTask, LoggedData loggedData)
718718
foreach (ISOTime time in isoLoggedTask.Times.Where(t => t.HasStart && t.HasType)) //Nothing added without a Start and Type attribute
719719
{
720720
TimeScope timeScope = new TimeScope();
721+
timeScope.DateContext = DateContextEnum.ActualStart;
721722
timeScope.TimeStamp1 = time.Start;
722723
if (time.Stop != null)
723724
{
@@ -840,6 +841,7 @@ private StampedMeteredValues GetStampedMeteredValuesForTimes(IEnumerable<ISOTime
840841

841842
//TimeScope
842843
stampedValues.Stamp = new TimeScope();
844+
stampedValues.Stamp.DateContext = DateContextEnum.ActualStart;
843845
stampedValues.Stamp.TimeStamp1 = orderedTimes.First().Start;
844846
if (orderedTimes.Last().Stop != null)
845847
{

0 commit comments

Comments
 (0)