Skip to content

Commit

Permalink
imp - Made status longer
Browse files Browse the repository at this point in the history
---

In the interactive calendar TUI, we've made the status display the long form of the date.

---

Type: imp
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Feb 26, 2024
1 parent 7db71d4 commit a869dac
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
using Terminaux.Base;
using Terminaux.Reader;
using Terminaux.Base.Extensions;
using Nitrocid.Kernel.Time.Renderers;

namespace Nitrocid.Extras.Calendar.Calendar
{
Expand Down Expand Up @@ -415,7 +416,9 @@ private static void StatusNumInfo((int Year, int Month, int Day, CalendarTypes c
{
// Change the status to reflect the selected day
status =
$"MM/DD/YYYY: {state.Month}/{state.Day}/{state.Year} | {Translate.DoTranslation("Calendar type")}: {state.calendar}";
$"MM/DD/YYYY: {state.Month}/{state.Day}/{state.Year} | " +
$"{Translate.DoTranslation("Long form")}: {TimeDateRenderers.RenderDate(new DateTime(state.Year, state.Month, state.Day), FormatType.Long)} | " +
$"{Translate.DoTranslation("Calendar type")}: {state.calendar}";
}

private static void HandleKeypress(ConsoleKeyInfo key, ref (int Year, int Month, int Day, CalendarTypes calendar) state)
Expand Down

0 comments on commit a869dac

Please sign in to comment.