loresoft / msbuildtasks

The MSBuild Community Tasks Project is an open source project for MSBuild tasks.
BSD 2-Clause "Simplified" License
946 stars 271 forks source link

Time Culture inconsistency #264

Open splendid25 opened 7 years ago

splendid25 commented 7 years ago

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?