From a27a5deadcc260645c28dbb8be7b52c1d8a8cddc Mon Sep 17 00:00:00 2001
From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com>
Date: Fri, 10 Jun 2022 08:35:04 -0400
Subject: [PATCH] Update config.php
---
scripts/config.php | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/scripts/config.php b/scripts/config.php
index 233d05b..0747362 100644
--- a/scripts/config.php
+++ b/scripts/config.php
@@ -24,6 +24,7 @@ if(isset($_GET["latitude"])){
$flickr_api_key = $_GET['flickr_api_key'];
$flickr_filter_email = $_GET["flickr_filter_email"];
$language = $_GET["language"];
+ $timezone = $_GET["timezone"];
if(isset($_GET['apprise_notify_each_detection'])) {
$apprise_notify_each_detection = 1;
@@ -36,6 +37,10 @@ if(isset($_GET["latitude"])){
$apprise_notify_new_species = 0;
}
+ if(isset($timezone)) {
+ shell_exec("sudo timedatectl set-timezone ".$timezone);
+ }
+
// logic for setting the date and time based on user inputs from the form below
if(isset($_GET['date']) && isset($_GET['time'])) {
// can't set the date manually if it's getting it from the internet, disable ntp
@@ -272,7 +277,22 @@ https://discordapp.com/api/webhooks/{WebhookID}/{WebhookToken}
If connected to the internet, retrieve time automatically?
>
>
- >
+ >
+
+
+