Skip to content

v2.24.0 - Clock module - (showSunTimes: true) Retruns Undefined - formatTime is not defined #3143

@fire1ce

Description

@fire1ce

MagicMirror v2.24.0

Clock module:

I've commneted it to render the clock black.

    {
      module: 'clock',
      position: 'top_bar',
      config: {
        clockBold: true,
        // showSunTimes: true,
        displayType: 'both',
        analogSize: '400px',
        analogPlacement: 'right',
        secondsColor: '#ff5263',
        lat: xx.xx,
        lon: xx.xx,
      },
    }

when showSunTimes: true
error from the console:

clock.js:191 Uncaught (in promise) ReferenceError: formatTime is not defined
    at Class.getDom (clock.js:191:5)
    at main.js:110:35
    at new Promise (<anonymous>)
    at updateDom (main.js:108:10)
    at main.js:53:31
    at Array.forEach (<anonymous>)
    at createDomObjects (main.js:20:11)
    at Object.modulesStarted (main.js:485:4)
    at startModules (loader.js:42:6)
    at async loadNextModule (loader.js:218:6)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions