|
|
|
@ -204,7 +204,7 @@ PlasmaComponents3.Page { |
|
|
|
var sections = []; |
|
|
|
var sections = []; |
|
|
|
|
|
|
|
|
|
|
|
// Show until time if valid but not if too far int he future |
|
|
|
// Show until time if valid but not if too far int he future |
|
|
|
if (!isNaN(inhibitedUntil.getTime()) && inhibitedUntil.getTime() - new Date().getTime() < 100 * 24 * 60 * 60 * 1000 /* 1 year*/) { |
|
|
|
if (!isNaN(inhibitedUntil.getTime()) && inhibitedUntil.getTime() - Date.now() < 100 * 24 * 60 * 60 * 1000 /* 1 year*/) { |
|
|
|
sections.push(i18nc("Do not disturb until date", "Until %1", |
|
|
|
sections.push(i18nc("Do not disturb until date", "Until %1", |
|
|
|
KCoreAddons.Format.formatRelativeDateTime(inhibitedUntil, Locale.ShortFormat))); |
|
|
|
KCoreAddons.Format.formatRelativeDateTime(inhibitedUntil, Locale.ShortFormat))); |
|
|
|
} |
|
|
|
} |
|
|
|
|