From 0f963c30124a58d360425b097dd5f2d4ff4640c9 Mon Sep 17 00:00:00 2001 From: aexel90 Date: Mon, 28 Dec 2020 10:16:22 +0100 Subject: [PATCH] time fix --- hue/hue.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hue/hue.go b/hue/hue.go index 4d7bb62..08fbd74 100644 --- a/hue/hue.go +++ b/hue/hue.go @@ -126,8 +126,8 @@ func collectSensors(bridge *hue.Bridge) (sensorData []map[string]interface{}, er result[LabelUniqueID] = sensor.UniqueID result[LabelStateButtonEvent] = float64(sensor.State.ButtonEvent) result[LabelStateDaylight] = sensor.State.Daylight - result[LabelStateLastUpdated] = sensor.State.LastUpdated.Unix() - result[LabelStateLastUpdatedTime] = sensor.State.LastUpdated.Time.Unix() + result[LabelStateLastUpdated] = sensor.State.LastUpdated + result[LabelStateLastUpdatedTime] = sensor.State.LastUpdated.Time result[LabelConfigBattery] = sensor.Config.Battery result[LabelConfigOn] = sensor.Config.On result[LabelConfigReachable] = sensor.Config.Reachable