diff --git a/Marathons/Const.cs b/Marathons/Const.cs new file mode 100644 index 0000000..7218915 --- /dev/null +++ b/Marathons/Const.cs @@ -0,0 +1,8 @@ +using System.Globalization; + +namespace Marathons; + +public class Const +{ + public static CultureInfo Culture => new CultureInfo("de-AT"); +} \ No newline at end of file diff --git a/Marathons/Marathon.cs b/Marathons/Marathon.cs index b52fc85..97f87ea 100644 --- a/Marathons/Marathon.cs +++ b/Marathons/Marathon.cs @@ -30,6 +30,6 @@ public sealed class Marathon public override string ToString() { - return $"{City} marathon on {Date.ToString()}"; + return $"{City} marathon on {Date.ToString(Const.Culture)}"; } } \ No newline at end of file