diff --git a/XenAdmin/Dialogs/HealthCheck/HealthCheckOverviewDialog.cs b/XenAdmin/Dialogs/HealthCheck/HealthCheckOverviewDialog.cs index 555af5f27..f4d84a81c 100644 --- a/XenAdmin/Dialogs/HealthCheck/HealthCheckOverviewDialog.cs +++ b/XenAdmin/Dialogs/HealthCheck/HealthCheckOverviewDialog.cs @@ -33,6 +33,7 @@ using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; +using System.Globalization; using System.Linq; using System.Windows.Forms; using XenAdmin.Actions; @@ -201,7 +202,8 @@ namespace XenAdmin.Dialogs.HealthCheck var time = new DateTime(1900, 1, 1, healthCheckSettings.TimeOfDay, 0, 0); return healthCheckSettings.Status == HealthCheckStatus.Enabled ? string.Format(Messages.HEALTHCHECK_SCHEDULE_DESCRIPTION, healthCheckSettings.IntervalInWeeks, - healthCheckSettings.DayOfWeek, HelpersGUI.DateTimeToString(time, Messages.DATEFORMAT_HM, true)) + DateTimeFormatInfo.CurrentInfo.GetDayName(healthCheckSettings.DayOfWeek), + HelpersGUI.DateTimeToString(time, Messages.DATEFORMAT_HM, true)) : string.Empty; } } diff --git a/XenAdmin/Dialogs/HealthCheck/HealthCheckSettingsDialog.cs b/XenAdmin/Dialogs/HealthCheck/HealthCheckSettingsDialog.cs index a52ee99ce..aed0e8cbe 100644 --- a/XenAdmin/Dialogs/HealthCheck/HealthCheckSettingsDialog.cs +++ b/XenAdmin/Dialogs/HealthCheck/HealthCheckSettingsDialog.cs @@ -32,6 +32,7 @@ using System; using System.Collections.Generic; using System.Drawing; +using System.Globalization; using System.Windows.Forms; using XenAdmin.Actions; using XenAdmin.Core; @@ -94,7 +95,7 @@ namespace XenAdmin.Dialogs.HealthCheck Dictionary days = new Dictionary(); foreach (var dayOfWeek in Enum.GetValues(typeof(DayOfWeek))) { - days.Add((int)dayOfWeek, dayOfWeek.ToString()); + days.Add((int)dayOfWeek, DateTimeFormatInfo.CurrentInfo.GetDayName((DayOfWeek)dayOfWeek)); } return days; }