arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.69k stars 4.72k forks source link

Berry `tasmota.rtc("config_time")` #21703

Closed s-hadinger closed 3 days ago

s-hadinger commented 3 days ago

Description:

Berry add tasmota.rtc("config_time") that returns teh epoch time when the configuration was last saved. This is a rought estimate of the time, useful to have some credible timestamps before NTP got the new time.

This is used for example in TLS to check the time of the server certificate before NTP; or for Matter to have event timestamps before NTP.

The feature was actually mistakenly included in #21698

Checklist:

NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass