From 19dcb38dfbe8b8e8f7cbf364f064411f18cdc7e2 Mon Sep 17 00:00:00 2001 From: peeweek <4037271+peeweek@users.noreply.github.com> Date: Wed, 21 Jul 2021 15:35:53 +0200 Subject: [PATCH] Shortened Months to fit width in AMPM mode --- apps/hcclock/hcclock.app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/hcclock/hcclock.app.js b/apps/hcclock/hcclock.app.js index d1866c11b..3b3906923 100644 --- a/apps/hcclock/hcclock.app.js +++ b/apps/hcclock/hcclock.app.js @@ -67,7 +67,7 @@ const numbers = ] ]; -const months = [ "JANUARY", "FEBRUARY", "MARCH", "APRIL", "MAY", "JUNE", "JULY", "AUGUST", "SEPTEMBER", "OCTOBER", "NOVEMBER", "DECEMBER" ]; +const months = [ "JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC" ]; const interval = 1000; // in ms const top = 32; @@ -168,7 +168,7 @@ function fmtDate(day,month,year,hour) return months[month] + " " + day + " " + year + " "+ ap; } else - return months[month] + " " + day + " " + year; + return months[month] + ". " + day + " " + year; } // Handles Flipping colors, then refreshes the UI