ReGaHSS: .Format() -> Laufzeitfehler-Fehler bei Aufruf ohne Parameter
Describe the issue you are experiencing
Wird die Methode .Format() ohne Parameter ausgeführt, dann wird ein Laufzeitfehler (ScriptRuntimeError) ausgelöst.
Describe the behavior you expected
Erwartet würde eine ähnliche Ausgabe analog zu den Methoden .ToString(), .SunriseTime(), .SunsetTime() und .Date(), welche auch ohne Parametereingabe das Datum mit dem Variabletyp string zurückgeben.
Steps to reproduce the issue
Ausführung des folgenden Skriptes unter "Skript testen":
WriteLine("Start");
WriteLine(dom.BuildLabel());
time lTime = localtime;
var lResult;
lResult = system.Date();
WriteLine(lResult);
WriteLine(lResult.Type());
lResult = lTime.ToString();
WriteLine(lResult);
WriteLine(lResult.Type());
lResult = lTime.Format();
WriteLine(lResult);
WriteLine(lResult.Type());
WriteLine("Ende");
What is the version this bug report is based on?
CCU3 mit ReGaHSS-Version R1.00.0388.0235
Which base platform are you running?
rpi3 (RaspberryPi3)
Which HomeMatic/homematicIP radio module are you using?
n/a
Anything in the logs that might be useful for us?
bestehend seit:
ab ReGaHss-Version R1.00.0388.0109 (18.05.2017)
ältere ReGaHss-Versionen zeigen ein anderes Fehlerbild
Additional information
Ausgabe des Skriptes:
Start
R1.00.0388.0235
20:26:24 08.03.2024
string
2024-03-08 20:26:24
string
Das Skript wird bei der Ausführung von .Format() angebrochen.
There hasn't been any activity on this issue recently. To keep our backlog manageable we have to clean old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest RaspberryMatic version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.