Skip to content

Commit

Permalink
Use ltb-common getStartDate and getEndDate methods
Browse files Browse the repository at this point in the history
  • Loading branch information
coudot committed Dec 27, 2024
1 parent 1bf9cfe commit 76834e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"datatables.net/datatables.net-bs5": "2.0.8",
"datatables.net/datatables.net-buttons-bs5": "3.0.2",
"fortawesome/font-awesome": "v6.5.2",
"ltb-project/ltb-common": "v0.4.0",
"ltb-project/ltb-common": "v0.4.1",
"twbs/bootstrap": "v5.3.2"
},
"scripts": {
Expand Down
10 changes: 2 additions & 8 deletions htdocs/display.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,8 @@

if ($show_validitystatus) {
$isAccountValid = $directory->isAccountValid($ldap, $dn);
if ($use_updatestarttime and isset($entry[0][ $attributes_map['starttime']['attribute'] ])) {
$starttime = $entry[0][ $attributes_map['starttime']['attribute'] ][0];
$startDate = $directory->getPhpDate( $starttime );
}
if ($use_updateendtime and isset($entry[0][ $attributes_map['endtime']['attribute'] ])) {
$endtime = $entry[0][ $attributes_map['endtime']['attribute'] ][0];
$endDate = $directory->getPhpDate( $endtime );
}
$startDate = $directory->getStartDate($ldap, $dn);
$endDate = $directory->getEndDate($ldap, $dn);
}

}}}
Expand Down

0 comments on commit 76834e4

Please sign in to comment.