diff --git a/console/command_executer.go b/console/command_executer.go index 1aebcf316..bf5a3d2e1 100644 --- a/console/command_executer.go +++ b/console/command_executer.go @@ -25,6 +25,7 @@ import ( "reflect" "regexp" "strings" + "time" "github.com/cgrates/cgrates/utils" ) @@ -81,6 +82,10 @@ func (ce *CommandExecuter) clientArgs(iface interface{}) (args []string) { continue } } + if _, canCast := valField.Interface().(time.Time); canCast { + args = append(args, typeField.Name) + continue + } args = append(args, ce.clientArgs(valField.Interface())...) default: