From 2224e56e1b8aec6ca82d3e73f84e6ae55f66350e Mon Sep 17 00:00:00 2001 From: Barbudor Date: Mon, 13 Apr 2020 23:05:12 +0200 Subject: [PATCH] Added %utctime% as rules variable Was in the docs but not implemented --- tasmota/xdrv_10_rules.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/tasmota/xdrv_10_rules.ino b/tasmota/xdrv_10_rules.ino index 2509d6f6f..4146fa382 100644 --- a/tasmota/xdrv_10_rules.ino +++ b/tasmota/xdrv_10_rules.ino @@ -476,6 +476,7 @@ bool RuleSetProcess(uint8_t rule_set, String &event_saved) RulesVarReplace(commands, stemp, SettingsText(SET_MEM1 +i)); } RulesVarReplace(commands, F("%TIME%"), String(MinutesPastMidnight())); + RulesVarReplace(commands, F("%UTCTIME%"), String(UtcTime())); RulesVarReplace(commands, F("%UPTIME%"), String(MinutesUptime())); RulesVarReplace(commands, F("%TIMESTAMP%"), GetDateAndTime(DT_LOCAL)); RulesVarReplace(commands, F("%TOPIC%"), SettingsText(SET_MQTT_TOPIC));