From d718145bd3d956e4ed5da55baab2357c9a622755 Mon Sep 17 00:00:00 2001 From: Sebastian Norling <1932208+Bazze@users.noreply.github.com> Date: Thu, 21 May 2026 14:54:25 +0200 Subject: [PATCH] style(event/stream): gofmt decode.go layout table alignment --- event/stream/decode.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/event/stream/decode.go b/event/stream/decode.go index f0bc7df..2559a8b 100644 --- a/event/stream/decode.go +++ b/event/stream/decode.go @@ -109,8 +109,8 @@ func parseDeviceTime(s string) time.Time { // firmwares. Ordered from most-precise / most-common first so the // happy path hits early. var deviceTimeLayouts = []string{ - time.RFC3339Nano, // 2026-05-21T10:30:00.500Z, ...+02:00 - time.RFC3339, // 2026-05-21T10:30:00Z, ...+02:00 + time.RFC3339Nano, // 2026-05-21T10:30:00.500Z, ...+02:00 + time.RFC3339, // 2026-05-21T10:30:00Z, ...+02:00 "2006-01-02T15:04:05.999-0700", // sub-second + compact offset (Geovision) "2006-01-02T15:04:05-0700", // compact offset (some Dahua) "2006-01-02T15:04:05.999", // no timezone, sub-second (rare)