From 1e2926683611ce15cf94571cc264f21716858f93 Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Thu, 13 Aug 2020 18:00:58 +0000 Subject: [PATCH] switched to time.RFC3339Nano for timeformat, does something weird on disk, but works otherwise and better accuracy for sub second motionIntervals --- watch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watch.go b/watch.go index bd61357..efab421 100755 --- a/watch.go +++ b/watch.go @@ -10,7 +10,7 @@ import ( "time" ) -const timeLayout = "2006-01-02_15-4-5.jpg" +const timeLayout = time.RFC3339Nano // WatchArea defines one or more areas that should be monitored for motion type WatchArea struct {