From bf4cd45bfe983302e2b7e0deda024995ae84321a Mon Sep 17 00:00:00 2001 From: zprius Date: Mon, 6 Feb 2017 23:05:55 -0500 Subject: [PATCH] Fixed Date format during reset previous date was "m/dd/YY" which is the Minutes followed by a zero-padded Day and Year. Minutes was certainly incorrect, but since Dates can be confusing depending the locale when represented as a MM/DD format or DD/MM format, I adjusted to a non-zero-padded day followed by a the 3 character Month abbreviation (e.g. 6-Feb-17). --- AEON HEM v1.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AEON HEM v1.groovy b/AEON HEM v1.groovy index 42d0073..e2e24eb 100644 --- a/AEON HEM v1.groovy +++ b/AEON HEM v1.groovy @@ -382,7 +382,7 @@ def reset() { state.voltsHigh = 0 state.voltsLow = 999 - def dateString = new Date().format("m/d/YY", location.timeZone) + def dateString = new Date().format("d-MMM-YY", location.timeZone) def timeString = new Date().format("h:mm a", location.timeZone) sendEvent(name: "energyOne", value: "Since\n"+dateString+"\n"+timeString, unit: "") sendEvent(name: "powerOne", value: "", unit: "") @@ -424,4 +424,4 @@ def configure() { log.debug cmd cmd -} \ No newline at end of file +}