diff --git a/action.php b/action.php index 3d22250..96f4708 100644 --- a/action.php +++ b/action.php @@ -297,7 +297,7 @@ function opDetail() { echo 'Captain'; echo 'Arriving From:' . $row['in_from'] . ''; echo 'POB IN'; - echo 'ETA'; + echo 'ETA Z'; echo 'Fuel'; echo 'POB OUT'; echo 'Outbound To' . $row['out_to'] . ''; - echo 'ETD'; + echo 'ETD Z'; echo 'Email Address'; echo 'Phone'; echo 'Notes' . $row['notes'] . ''; diff --git a/input.html b/input.html index c2bf3c3..94fdf2c 100644 --- a/input.html +++ b/input.html @@ -161,7 +161,7 @@
- +
@@ -173,7 +173,7 @@
- + diff --git a/update_data.php b/update_data.php index 3c5422d..8481b64 100644 --- a/update_data.php +++ b/update_data.php @@ -26,11 +26,12 @@ if (!in_array($column, $allowed_columns)) { } // Convert eta or etd to UTC if supplied -if (in_array($column, ['eta', 'etd'])) { - $date = new DateTime($new_value, new DateTimeZone('Europe/London')); - $date->setTimezone(new DateTimeZone('UTC')); - $new_value = $date->format('Y-m-d H:i:s'); -} +// 1st June 2025 JP - NO - when editing just use Zulu time +//if (in_array($column, ['eta', 'etd'])) { +// $date = new DateTime($new_value, new DateTimeZone('Europe/London')); +// $date->setTimezone(new DateTimeZone('UTC')); +// $new_value = $date->format('Y-m-d H:i:s'); +//} $stmt = $conn->prepare("UPDATE submitted SET `$column` = ? WHERE id = ?"); if (!$stmt) {