diff options
| author | Simon Rettberg | 2025-07-14 16:50:29 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2025-07-14 16:50:29 +0200 |
| commit | 83c4bb160cea6e7fbadbe4c0876b754f0acf24c5 (patch) | |
| tree | 96b8955da109cd15998e3a84699abb11627cb2c3 /modules-available/locationinfo/api.inc.php | |
| parent | [locationinfo] Remove debug spam (diff) | |
| download | slx-admin-83c4bb160cea6e7fbadbe4c0876b754f0acf24c5.tar.gz slx-admin-83c4bb160cea6e7fbadbe4c0876b754f0acf24c5.tar.xz slx-admin-83c4bb160cea6e7fbadbe4c0876b754f0acf24c5.zip | |
[locationinfo] Add UPCOMING panel type
Diffstat (limited to 'modules-available/locationinfo/api.inc.php')
| -rw-r--r-- | modules-available/locationinfo/api.inc.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules-available/locationinfo/api.inc.php b/modules-available/locationinfo/api.inc.php index b066779b..7c301f86 100644 --- a/modules-available/locationinfo/api.inc.php +++ b/modules-available/locationinfo/api.inc.php @@ -16,7 +16,10 @@ function HandleParameters() $uuid = Request::get('uuid', false, 'string'); $output = null; if ($get === "timestamp") { - $output = array('ts' => getLastChangeTs($uuid)); + $output = [ + 'ts' => getLastChangeTs($uuid), + 'now' => round(microtime(true) * 1000), + ]; } elseif ($get === "machines") { $locationIds = LocationInfo::getLocationsOr404($uuid); $output = array(); |
