Endpoints plugin now respects the site_timezone setting from /settings. All timestamps in endpoint details, script runs, and log collections are now converted from UTC to the configured site timezone for display. Changes: - Added _get_site_timezone() helper to read site_timezone setting - Added _localize_timestamp() to convert UTC datetimes to site timezone - Applied localization to GET /api/endpoints/<id> (last_seen, created_at) - Applied localization to GET /api/endpoints/<id>/scriptruns (execution times) - Applied localization to GET /api/endpoints/<id>/logcollections (collection times) This aligns endpoints plugin with notifications and backups plugins which already use site_timezone for their time-sensitive operations.
170 KiB
170 KiB