zkteco icon indicating copy to clipboard operation
zkteco copied to clipboard

setTime()

Open samirqumsieh opened this issue 4 years ago • 1 comments

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);
}`

samirqumsieh avatar Feb 24 '21 10:02 samirqumsieh

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

davidmcglynn avatar Oct 17 '23 12:10 davidmcglynn