diff --git a/RTC/set_with_browserTime.py b/RTC/set_with_browserTime.py index 9ce29e7..e0c8e80 100644 --- a/RTC/set_with_browserTime.py +++ b/RTC/set_with_browserTime.py @@ -1,7 +1,7 @@ """ Script to set the RTC using the browser time. -/usr/bin/python3 /var/www/nebuleair_pro_4g/RTC/set_with_browserTime.py '$rtc_time' +/usr/bin/python3 /var/www/nebuleair_pro_4g/RTC/set_with_browserTime.py '2024-01-30 12:48:39' """ diff --git a/html/admin.html b/html/admin.html index 5397c65..58b1bd7 100755 --- a/html/admin.html +++ b/html/admin.html @@ -351,7 +351,7 @@ function set_RTC_withBrowser(){ $.ajax({ url: `launcher.php?type=set_RTC_withBrowser&time=${encodeURIComponent(formattedTime)}`, method: 'GET', // Use GET or POST depending on your needs - dataType: 'text', // Specify that you expect a JSON response + dataType: 'json', // Specify that you expect a JSON response success: function(response) { // Handle success response if needed