Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/create_edit.js11
1 files changed, 2 insertions, 9 deletions
diff --git a/js/create_edit.js b/js/create_edit.js
index 3d8a713f..97e72cb0 100644
--- a/js/create_edit.js
+++ b/js/create_edit.js
@@ -354,15 +354,8 @@ $(document).ready(function () {
alert(t('polls', 'Nothing selected!\nClick on cells to turn them green.'));
return false;
}
- if(chosen_type == 'event') {
- var tzOffset = new Date().getTimezoneOffset() * 60; //from min to ms
- for(var i=0; i<g_chosen_datetimes.length; i++) {
- g_chosen_datetimes[i] -= tzOffset; // -, because offset is negative for > UTC
- }
- form.elements['chosenDates'].value = JSON.stringify(g_chosen_datetimes);
- } else {
- form.elements['chosenDates'].value = JSON.stringify(g_chosen_texts);
- }
+ if(chosen_type == 'event') form.elements['chosenDates'].value = JSON.stringify(g_chosen_datetimes);
+ else form.elements['chosenDates'].value = JSON.stringify(g_chosen_texts);
var title = document.getElementById('pollTitle');
if (title == null || title.value.length == 0) {
alert(t('polls', 'You must enter at least a title for the new poll.'));