msbuildtasks icon indicating copy to clipboard operation
msbuildtasks copied to clipboard

Time Culture inconsistency

Open splendid25 opened this issue 8 years ago • 0 comments

The Time task is not consistent with the output Culture between FormattedTime (InvariantCulture) and the other parameters (CurrentCulture).

<Time Format="D">
	<Output TaskParameter="FormattedTime" PropertyName="CustomDate" />
	<Output TaskParameter="LongDate" PropertyName="LongDate" />
</Time>
        
<Message Text="$(CustomDate)" />
<Message Text="$(LongDate)" />

The output is :

Wednesday, 20 September 2017 mercredi 20 septembre 2017

These 2 outputs should be equals. If possible, a new input parameter could define the expected Culture?

splendid25 avatar Sep 20 '17 10:09 splendid25