diff --git a/src/script/functions/basic.cpp b/src/script/functions/basic.cpp index 32273a7f..958401b8 100644 --- a/src/script/functions/basic.cpp +++ b/src/script/functions/basic.cpp @@ -63,7 +63,7 @@ String format_input(const String& format, const ScriptValue& input) { // determine type of input ScriptType type = input.type(); if (type == SCRIPT_DATETIME) { - input.toDateTime().Format(format.c_str()); + return input.toDateTime().Format(format.c_str()); } else { // determine type expected by format string String fmt = _("%") + replace_all(format, _("%"), _(""));