mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-30 13:09:34 +00:00
Cleanups
This commit is contained in:
parent
6de983aeb2
commit
d3d64d3ca0
@ -77,7 +77,7 @@ Module.register("calendar", {
|
|||||||
// Define required translations.
|
// Define required translations.
|
||||||
getTranslations: function () {
|
getTranslations: function () {
|
||||||
// The translations for the default modules are defined in the core translation files.
|
// The translations for the default modules are defined in the core translation files.
|
||||||
// Therefor we can just return false. Otherwise we should have returned a dictionary.
|
// Therefore we can just return false. Otherwise we should have returned a dictionary.
|
||||||
// If you're trying to build your own module including translations, check out the documentation.
|
// If you're trying to build your own module including translations, check out the documentation.
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
@ -18,8 +18,8 @@ const CalendarUtils = {
|
|||||||
* Calculate the time correction, either dst/std or full day in cases where
|
* Calculate the time correction, either dst/std or full day in cases where
|
||||||
* utc time is day before plus offset
|
* utc time is day before plus offset
|
||||||
*
|
*
|
||||||
* @param event
|
* @param {object} event
|
||||||
* @param date
|
* @param {Date} date
|
||||||
* @returns {number} the necessary adjustment in hours
|
* @returns {number} the necessary adjustment in hours
|
||||||
*/
|
*/
|
||||||
calculateTimezoneAdjustment: function (event, date) {
|
calculateTimezoneAdjustment: function (event, date) {
|
||||||
|
@ -74,6 +74,8 @@ module.exports = NodeHelper.create({
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
* @param {object} fetcher the fetcher associated with the calendar
|
||||||
|
* @param {string} identifier the identifier of the calendar
|
||||||
*/
|
*/
|
||||||
broadcastEvents: function (fetcher, identifier) {
|
broadcastEvents: function (fetcher, identifier) {
|
||||||
this.sendSocketNotification("CALENDAR_EVENTS", {
|
this.sendSocketNotification("CALENDAR_EVENTS", {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user