From ec185205164a6ea6bccf6fa7af165f0a05b18332 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 2 Feb 2010 23:57:05 +0000 Subject: [PATCH] Debug reporting --- htdocs/compta/tva/clients.php | 2 +- htdocs/html.form.class.php | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) 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 {