raihanafroz / zkteco

ZKTeco Laravel Library
151 stars 57 forks source link

setTime() #3

Open samirqumsieh opened 3 years ago

samirqumsieh commented 3 years ago

Hi there, I couldn't update the time using the setTime() function, until I commented the "die($t)" on the Time.php class.

`static public function set(ZKTeco $self, $t) { // die($t); $self->_section = METHOD;

    $command = Util::CMD_SET_TIME;
    $command_string = pack('I', Util::encodeTime($t));

    return $self->_command($command, $command_string);
}`
davidmcglynn commented 10 months ago

Also had to do this - I assume this was mistakenly left in the code on last commit.