publishTime is a member of the class, wchar_t publishTime [100];
Cycle call wcsncat (publishTime, temp, wcslen (temp) + 1) when this sentence, publishTime also change, publishTime content also getting longer. As the 10 minutes before the time through the loop, it did not discover the error.
Project results are as follows: