onsole.log('Response data:', data);
                    if (data.error) {
                        alert('Error: ' + data.error);
                    } else {
                        alert(`Event time successfully adjusted by ${minutesOffset > 0 ? '+' : ''}${minutesOffset} minutes.`);
                        location.reload();
                    }
                })
                .catch(error => {
                    console.error('Error:', error);
                    alert('Error adjusting event time: ' 