AnsweredAssumed Answered

Set AF SDK to a fix timezone

Question asked by HEPC on Jun 15, 2016
Latest reply on Jun 16, 2016 by HEPC

Hi there,


I'm building a connector between our system and a PI System using the PI AF SDK (2015 R2).

The Connector reads an writes data to the PI System using Methods of the class PI Point (RecordedValue(s), Summaries, UpdateValues).

Our system uses CET as timezone, so both the From- and To-timestamps that I get from our system for reading and writing are CET-timestamps and I have to deliver all read values with CET-timestamps.

As far as I see, PI AF SDK can interpret timestamps either as UTC or in the local timezone, which can change depending on the customer installation.


So here is my question:

What is the best way to convert timestamps between our system (CET) and the PI AF SDK and vice versa? Is there a way, to set the local timezone for the AF SDK installation to CET?

Or do I have to convert all timestamps using the TimeZoneInfo.ConvertTime-Method?

Thanx in advance :-)