Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
BadenPower opened this issue Mar 8, 2024 · 0 comments
Open
Labels
🐛 bug-report Something isn't working

Comments

@BadenPower
Copy link

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 BadenPower added the 🐛 bug-report Something isn't working label Mar 8, 2024
@BadenPower BadenPower changed the title ReGaHSS: .Format() -> Laufzeizfehler-Fehler bei Aufruf ohne Parameter ReGaHSS: .Format() -> Laufzeitfehler-Fehler bei Aufruf ohne Parameter Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug-report Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant