Build script integration: Unparseable date


I am getting this output:

[00:17:15][Step 3/3] ##teamcity[testSuiteStarted name='ConvertAll' timestamp='2015-06-16T00:16:58.311-07:00']
[00:17:15][Step 3/3] Unparseable date: "2015-06-16T00:16:58.311-07:00"

the teamcity message was created with this C# code:
Console.Out.WriteLine("##teamcity[{1} timestamp='{0}']", DateTime.UtcNow.ToString("yyyy-MM-dd'T'HH:mm:ss.fffzzz"), string.Format(format, args));

I used the date time format string as given in:

Did I use the format string correctly?

1 comment
Comment actions Permalink

It looks like .NET does not output the timezone in RFC822 format that is parsable by Java.
I used this to fix the timestamp:


Please sign in to leave a comment.