Applies To:
  • CitectSCADA
  • Vijeo Citect 

Summary:

I have been using the German localisation of Citect with the XP Style templates.

When I navigate to the single trend page of my project I find that the start and end dates of my trends are cut off by one character - typically the first letter of the month will not be shown (see screenshot below).

I have checked with the English language installation of Citect and this doesn't occur in that localisation.

What can I do to resolve this?


Solution:
The cause of this is due to the CSV_Trend_GetDate() function in the CSV_Include project. This function is used to display the start and end date of a trend, and is used on the single trend page. It is likely that the English date format was used when the function was written and other localised date formats were not taken into account.

To temporarily resolve the issue for the German localisation of Citect make the following changes to the function CSV_Trend_GetTime():
File: csv_trend.ci
Function: CSV_Trend_GetDate()
Line: 2226 (approximate)

Replace this line:
sDate = StrMid(TimeToStr(iTime, 4), 4, 11);

with the following line:
sDate = StrMid(TimeToStr(iTime, 4), 3, 11);

Note: The same cicode change made on an English localisation of Citect will truncate the last digit of the year.

Alternatively change the cicode so that it constructs the string out of individual date component rather than trying to extract them from a formatted string.

Please check to see that the changes will correct the displayed date. 

This has now been resolved in v7.10 Service Pack 3

Keywords:
 CSV_Trend_GetDate, cicode, date, trend, CSV_Include, localisation, region

Attachments