diff --git a/htdocs/compta/tva/clients.php b/htdocs/compta/tva/clients.php index 69a28b68f01..dd6bd38e0bd 100644 --- a/htdocs/compta/tva/clients.php +++ b/htdocs/compta/tva/clients.php @@ -1,7 +1,7 @@ * Copyright (C) 2004 Eric Seigne - * Copyright (C) 2004-2009 Laurent Destailleur + * Copyright (C) 2004-2010 Laurent Destailleur * Copyright (C) 2006 Yannick Warnier * * This program is free software; you can redistribute it and/or modify diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 9acbf91f282..50d17e0dd6f 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -2290,12 +2290,12 @@ class Form } elseif (strval($set_time) != '' && $set_time != -1) { - // Date est un timestamps (0 possible) - $syear = date("Y", $set_time); - $smonth = date("n", $set_time); - $sday = date("d", $set_time); - $shour = date("H", $set_time); - $smin = date("i", $set_time); + // set_time est un timestamps (0 possible) + $syear = dol_print_date($set_time, "%Y", true); + $smonth = dol_print_date($set_time, "%m", true); + $sday = dol_print_date($set_time, "%d", true); + $shour = dol_print_date($set_time, "%H", true); + $smin = dol_print_date($set_time, "%m", true); } else {