summaryrefslogtreecommitdiff
path: root/www/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/index.js')
-rw-r--r--www/js/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/js/index.js b/www/js/index.js
index 978a639..a6dc18e 100644
--- a/www/js/index.js
+++ b/www/js/index.js
@@ -141,7 +141,7 @@ $('#mainpage').on('pagebeforeshow', function(){
$('.version').text(version);
/* Sprache setzen */
- moment.lang('de');
+ moment.locale('de');
/* Nutzungsstatistiken */
_paq.push(['setTrackerUrl', 'https://klimaag.***REMOVED***/piwik/piwik.php']);
@@ -264,7 +264,7 @@ function fillForm(){
function addNotification(vdate, msgarr, $div){
var msg = msgarr.join('\n');
var title = 'Vertretungen für ' + vdate.format('dddd');
- var ndate = vdate.subtract('days', 1).add('days', $('#notifydayflip').val()); // Bei Bedarf einen Tag vorher
+ var ndate = vdate.subtract(1, 'days').add($('#notifydayflip').val(), 'days'); // Bei Bedarf einen Tag vorher
if(moment().isBefore(ndate)){
window.plugin.notification.local.add({