ngrok inspection API returns UTC timestamps while dashboard shows local time
0 reputation · 04 Sept 2024, 22:07 UTC
Goal: Ensure that timestamp data returned by ngrok’s inspection API and log output can be interpreted consistently across different regional time zones without requiring each consumer to apply custom conversion logic.
Constraints: The inspection API (GET /api/requests) and ngrok log files always emit timestamps in ISO‑8601 format ending with “Z”, indicating UTC. No configuration flag or yaml setting exists to shift this output to a local zone, and the web dashboard’s local‑time display relies solely on browser‑side JavaScript, which may be unavailable when logs are consumed programmatically or when scripting is disabled.
Questions: Is there a way to configure ngrok to emit timestamps in a specific time zone via its API or configuration file? Does ngrok plan to expose a timezone offset parameter in the inspection API? How can consumers reliably convert the UTC timestamps to local time without depending on browser JavaScript?