ical-org / ical.net

ical.NET - an open source iCal library for .NET
MIT License
784 stars 231 forks source link

Use specified culture/format provider when provided to CalDateTime.ToString #560

Open nzbart opened 1 year ago

nzbart commented 1 year ago

The ToString method on CalDateTime has useful logic to render the date and/or time components, but this rendering ignores the format provider and always uses the current culture. The format provider is currently used when the format string is specified, but not otherwise.

This PR adds some characterisation tests and alters ToString to use the format provider for date formatting.