From 4f5e3af6d2165ed8c21ce2797450e96398a4aa54 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Wed, 14 Feb 2007 18:42:23 +0000 Subject: [PATCH] fixed PDF bug in shadowAccount --- lam/HISTORY | 6 ++++++ lam/lib/modules/shadowAccount.inc | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lam/HISTORY b/lam/HISTORY index a9aa8b62..96f5b9ef 100644 --- a/lam/HISTORY +++ b/lam/HISTORY @@ -1,3 +1,9 @@ +??? 1.3.0 + - improved design + - fixed bugs: + -> ShadowAccount: PDF entry for expire date was wrong (1658868) + + 24.01.2007 1.2.0 - Samba 3: better handling of date values - Samba 3: Handling of locked accounts (RFE 1609076) diff --git a/lam/lib/modules/shadowAccount.inc b/lam/lib/modules/shadowAccount.inc index 29f4b889..a43cf466 100644 --- a/lam/lib/modules/shadowAccount.inc +++ b/lam/lib/modules/shadowAccount.inc @@ -4,6 +4,7 @@ $Id$ This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam) Copyright (C) 2003 - 2006 Tilo Lutz + Copyright (C) 2007 Roland Gruber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -360,7 +361,7 @@ class shadowAccount extends baseModule { return array('shadowAccount_shadowLastChange' => array('' . _('Last password change') . '' . $this->attributes['shadowLastChange'][0] . ''), 'shadowAccount_shadowWarning' => array('' . _('Password warning') . '' . $this->attributes['shadowWarn'][0] . ''), 'shadowAccount_shadowInactive' => array('' . _('Account inactive') . '' . $this->attributes['shadowInactive'][0] . ''), - 'shadowAccount_shadowExpire' => array('' . _('Password expiration') . '' . date('d. m. Y',$this->attributes['shadowExpire'][0]) . '')); + 'shadowAccount_shadowExpire' => array('' . _('Password expiration') . '' . date('d. m. Y',$this->attributes['shadowExpire'][0]*24*3600) . '')); } /**