mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
Update CHANGELOG, undo accidental commit in clock.js
This commit is contained in:
@@ -15,7 +15,7 @@ _This release is scheduled to be released on 2021-04-01._
|
|||||||
- Added German translation for "PRECIP".
|
- Added German translation for "PRECIP".
|
||||||
- Added first test for Alert module.
|
- Added first test for Alert module.
|
||||||
- Added support for `dateFormat` when not using `timeFormat: "absolute"`
|
- Added support for `dateFormat` when not using `timeFormat: "absolute"`
|
||||||
- Added custom-properties in css for improved styling experience, see `custom.css.sample` file
|
- Added custom-properties in css of core and modules for improved styling experience, see `custom.css.sample` file
|
||||||
|
|
||||||
### Updated
|
### Updated
|
||||||
|
|
||||||
|
@@ -52,7 +52,7 @@ Module.register("clock", {
|
|||||||
|
|
||||||
//Calculate how many ms should pass until next update depending on if seconds is displayed or not
|
//Calculate how many ms should pass until next update depending on if seconds is displayed or not
|
||||||
var delayCalculator = function (reducedSeconds) {
|
var delayCalculator = function (reducedSeconds) {
|
||||||
var EXTRA_DELAY = 50000000; //Deliberate imperceptable delay to prevent off-by-one timekeeping errors
|
var EXTRA_DELAY = 50; //Deliberate imperceptable delay to prevent off-by-one timekeeping errors
|
||||||
|
|
||||||
if (self.config.displaySeconds) {
|
if (self.config.displaySeconds) {
|
||||||
return 1000 - moment().milliseconds() + EXTRA_DELAY;
|
return 1000 - moment().milliseconds() + EXTRA_DELAY;
|
||||||
|
Reference in New Issue
Block a user