How to edit timestamps of events?

Questions regarding the use of the .NET SDK 2.0 for Server or Client development or integration into customer products ...

Moderator: uasdknet

Post Reply
s.meadow
Full Member
Full Member
Posts: 7
Joined: 12 Jun 2018, 09:01

How to edit timestamps of events?

Post by s.meadow »

Hi,

I am trying to edit timestamps of events to give them the timestamp of the underlying system.
Is it possible to change the timestamp of events/alarms?

Code: Select all

                GenericEvent obEvent = new GenericEvent(Server.FilterManager);
  
                obEvent.Initialize(
                    null,                                         
                    new NodeId(ObjectTypes.BaseEventType, InstanceNamespaceIndex),
                    SourceNode,
                    m_strEventSource,                                    
                    EventSeverity.Medium,                      
                    m_strEventMessage			
                    );                              

		
		// doesn't work
                obEvent.Time = conv_LocalTime2UTCTimestamp(m_datTimeStamp);
	
                ReportEvent(obEvent.SourceNode, obEvent);
Used Software: Unified Automation UA .NET SDK Bundle 2.5.7

Regards
Sabrina

Post Reply