diff --git a/htdocs/comm/index.php b/htdocs/comm/index.php index 884ffad263f..b51904ca29f 100644 --- a/htdocs/comm/index.php +++ b/htdocs/comm/index.php @@ -1,7 +1,7 @@ - * Copyright (C) 2004-2009 Laurent Destailleur - * Copyright (C) 2005-2009 Regis Houssin + * Copyright (C) 2004-2010 Laurent Destailleur + * Copyright (C) 2005-2010 Regis Houssin * * 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 @@ -78,7 +78,7 @@ if (isset($_GET["action"]) && $_GET["action"] == 'del_bookmark') * View */ -$now=gmmktime(); +$now=dol_now(); $html = new Form($db); $formfile = new FormFile($db); @@ -314,7 +314,8 @@ if ($conf->propal->enabled && $user->rights->propale->lire) print $propalstatic->getNomUrl(1); print ''; print ''; - if (($objp->fk_statut <= 1) && $objp->dp < ($now - $conf->propal->cloture->warning_delay)) print img_warning($langs->trans("Late")); + // TODO se baser sur datep ou fin_validite ? + if (($objp->fk_statut <= 1) && ($db->jdate($objp->dp) < ($now - $conf->propal->cloture->warning_delay))) print img_warning($langs->trans("Late")); print ''; print ''; $filename=dol_sanitizeFileName($objp->ref);