diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc
index b7cbba26206588aa5e8f17863455a6f5fa002811..4ac237f2eab6a140881da39c26007c64ba3b3fcb 100644 (file)
/* Generate status text */
$current= date("U");
+
+ $current= floor($current / 60 /60 / 24);
+
if (($current >= $this->shadowExpire) && $this->shadowExpire){
$this->status= _("expired");
- if (($this->shadowExpire - $current) < $this->shadowInactive){
+ if (($current - $this->shadowExpire) < $this->shadowInactive){
$this->status.= _(", grace time active");
}
} elseif (($this->shadowLastChange + $this->shadowMin) >= $current){