JetBrains/TeamCity.ServiceMessages — Issue #3: Unparseable date with TeamCity 6.5
Author: daveneeley
Created: 2012-02-06 16:03:39+00:00
State: open

This code
```c#
private void EmitTeamCityMessages()
{
using (ITeamCityWriter writer = new TeamCityServiceMessages().CreateWriter())
{
writer.WriteBuildStatistics("CodeCoverageL", "0.330792774812305");
}
}
```
Produces this error message in the output log

[06:52:48]: [Step 2/4] ##teamcity[buildStatisticValue key='CodeCoverageL' value='0.330792774812305' flowId='606841684' timestamp='2012-02-06T06:52:48.611-07:00']
[06:52:48]: [Step 2/4] Unparseable date: "2012-02-06T06:52:48.611-07:00"

I can see that the timestamp is being produced by this code in TimeStampUpdater.cs:

```c#
public IServiceMessage UpdateServiceMessage(IServiceMessage message)
{
if (message.DefaultValue != null) return message;
return new PatchedServiceMessage(message) { { "timestamp", myTimeService().ToString("yyyy-MM-dd'T'HH:mm:ss.fffzzz", CultureInfo.InvariantCulture) } };
}

```
However, I'm not sure how to override this format for TC 6.5.