net-daemon/docs

Small bug in CodeGen for SetDateTime

Closed this issue · 1 comments

public static void SetDatetime(this IEnumerable<InputDatetimeEntity> target, string? date = null, DateTime? time = null, string? datetime = null, long? timestamp = null)
    {
        target.CallService("set_datetime", new InputDatetimeSetDatetimeParameters { Date = date, Time = time, Datetime = datetime, Timestamp = timestamp });
    }

The time parameter expectes DateTime but when passing a valid value it does not work. I changed it to string and passed a string time "14:00:00" and that works fine

fixed some time ago