RaspberryMatic icon indicating copy to clipboard operation
RaspberryMatic copied to clipboard

ReGaHSS: .Format() -> Laufzeitfehler-Fehler bei Aufruf ohne Parameter

Open BadenPower opened this issue 1 year ago • 1 comments

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.

BadenPower avatar Mar 08 '24 19:03 BadenPower

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.

github-actions[bot] avatar Jun 07 '24 05:06 github-actions[bot]