From 80a7c32467e666ca10c182c0a2b8036eea2f036f Mon Sep 17 00:00:00 2001 From: MarcUs7i <96580944+MarcUs7i@users.noreply.github.com> Date: Thu, 5 Dec 2024 19:58:51 +0100 Subject: [PATCH] Added CountryFormat from CoffeeVendingMachine :) --- Marathons/Const.cs | 8 ++++++++ Marathons/Marathon.cs | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 Marathons/Const.cs 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