Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

DateTime::setTimestamp(): Argument #1 ($timestamp) must be of type int, float given #821

Open
JiriSch opened this issue Jun 27, 2023 · 0 comments

Comments

@JiriSch
Copy link

JiriSch commented Jun 27, 2023

  • Adldap2 Version: 10.5.0
  • LDAP Type: Active Directory
  • PHP Version: 8.0

Description:

TypeError Object
(
[message:protected] => DateTime::setTimestamp(): Argument #1 ($timestamp) must be of type int, float given
[string:Error:private] =>
[code:protected] => 0
[file:protected] => ...php80\vendor\adldap2\adldap2\src\Models\User.php
[line:protected] => 991
[trace:Error:private] => Array
(
[0] => Array
(
[file] => ...php80\vendor\adldap2\adldap2\src\Models\User.php
[line] => 991
[function] => setTimestamp
[class] => DateTime
[type] => ->

Quick fix:
adldap2\adldap2\src\Models\User.php
989: $unixTime = intval(Utilities::convertWindowsTimeToUnixTime($accountExpiry));

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant