Currently, NAnt's datetime functions typically uses invariant culture to format the output. This leads to problems for some users because they cannot specific a specific date time pattern.
The proper fix is to allow an IFormatProvider (ie DatetimeFormatInfo) to be passed as an (optional) argument to the NAnt DateTime functions. Similar to DateTime.ToString(IFormatProvider) in the .NET Framework SDK:
Similar functionality is found in Ant's TStamp Task, which supports both locale and pattern.
Log in to post a comment.