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:
@@ -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);
|
||||
|
||||
})
|
||||
});
|
||||
|
Reference in New Issue
Block a user