From 53d10a82fb07487f411c0c75dd0d58cc83610fbe Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 4 Nov 2020 13:31:33 +0100 Subject: [locationinfo] Allow seconds in prettytime mode, change eco mode text Eco mode doesn't change any colors anymore currently, it merely lowers the update rate and hides seconds from the countdown. --- modules-available/locationinfo/templates/frontend-default.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules-available/locationinfo/templates') diff --git a/modules-available/locationinfo/templates/frontend-default.html b/modules-available/locationinfo/templates/frontend-default.html index 46b1b427..6e04550d 100755 --- a/modules-available/locationinfo/templates/frontend-default.html +++ b/modules-available/locationinfo/templates/frontend-default.html @@ -253,6 +253,7 @@ optional: overflow: visible; height: 0; font-size: 10pt; + text-shadow: #000 1px 1px; } .BROKEN .screen-inner { @@ -1208,7 +1209,7 @@ optional: var newText = false, newTime = false; var seats = room.freePcs; if (tmp.state === 'closed' || tmp.state === 'CalendarEvent' || tmp.state === 'Free') { - newTime = GetTimeDiferenceAsString(tmp.end, MyDate(), globalConfig); + newTime = GetTimeDiferenceAsString(tmp.end, MyDate(), room.config); } if (tmp.state === "closed") { if (!same) newText = t("closed"); -- cgit v1.2.3-55-g7522