From 6b01c8f51aa4263e0358af4e8bc6bdacb1ade55b Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 15 Sep 2010 08:23:12 +0000 Subject: [PATCH] Fix: convert date Todo: baser alerte sur datep ou fin_validite ? --- htdocs/comm/index.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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);