1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 06:07:32 +02:00

datepicker timezone fix.

This commit is contained in:
Cameron
2018-05-25 08:47:47 -07:00
parent 78213c4a31
commit d023cfc63c
2 changed files with 4 additions and 14 deletions

View File

@@ -49,11 +49,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
newValue = $("#" + ev.target.id).val();
}
// make sure a UTC datestamp is saved
offset = parseInt($item.attr("data-date-timezone-offset"));
newOffsetValue = newValue + offset;
$(newTarget).val(newOffsetValue);
$(newTarget).val( newValue);
});
});
@@ -79,13 +75,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
newValue = $("#" + ev.target.id).val();
}
// make sure a UTC datestamp is saved
offset = parseInt($item.attr("data-date-timezone-offset"));
newOffsetValue = newValue + offset;
$(newTarget).val(newOffsetValue);
console.log( newOffsetValue); // remove later.
$(newTarget).val(newValue);
})
});