The C# program I work on reads the AF attribute which totalizes the PI tag. I found that it's possible to give programmatically an AFTimeRange as input which overwrites the time configured in the attribute. This time range contains the local and utc time. So the problem isn't a problem anymore.
Thanks for closing the loop!