From 0fe813acd9d2e0e53284e252fcee71c65418f3fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Z=C3=BCrcher?= Date: Thu, 1 May 2025 12:52:19 +0200 Subject: [PATCH] convert milliseconds to date and time --- dbm/system.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbm/system.go b/dbm/system.go index 04b61dd..2831abb 100644 --- a/dbm/system.go +++ b/dbm/system.go @@ -54,7 +54,7 @@ func (d *DBMHandler) GoSystemTime() error { for { t := time.Now().UnixMilli() if tOld != t { - if er := d.DB.UpdateDatapointValue(d.Conns, t, path); er != nil { + if er := d.DB.UpdateDatapointValue(d.Conns, time.UnixMilli(t).Format("2006-01-02 15:04:05"), path); er != nil { d.Log.Error("dmb.Handler.AddSystemDps.UpdateDatapointValue", er.Error()) } tOld = t