Fix showTime parameter

This commit is contained in:
rejas
2021-08-29 20:00:55 +02:00
parent c41fff8f5c
commit 6225abb010

View File

@@ -19,7 +19,7 @@ Module.register("clock", {
showPeriodUpper: false,
clockBold: false,
showDate: true,
showTime: false,
showTime: true,
showWeek: false,
dateFormat: "dddd, LL",
@@ -147,7 +147,7 @@ Module.register("clock", {
digitalWrapper.appendChild(dateWrapper);
}
if (this.config.showTime || this.config.displayType !== "analog") {
if (this.config.displayType !== "analog" && this.config.showTime) {
timeWrapper.innerHTML = timeString;
secondsWrapper.innerHTML = now.format("ss");
if (this.config.showPeriodUpper) {