[Erp5-dev] Base_FormatDate

Jérôme Perrin jerome at nexedi.com
Wed May 3 14:36:35 CEST 2006


Le Lundi 1 Mai 2006 10:53, Bartek Gorny a écrit :
> Hi
>
> I think there's a bug in Base_FormatDate:
>
> =======================================
> --- Base_FormatDate     2006-04-13 13:51:00.000000000 +0200
> +++ Base_FormatDate1    2006-05-01 12:50:56.820879280 +0200
> @@ -26,7 +26,7 @@
>    result = "%04d/%02d/%02d" % (y, m, d)
>  elif order == 'dmy':
>    result = "%02d/%02d/%04d" % (d, m, y)
> -elif input_order == 'mdy':
> +elif order == 'mdy':
>    result = "%02d/%02d/%04d" % (m, d, y)
>
>  if hour_minute or seconds :
> =======================================
>
> B.

Thanks a lot, I applied this patch.

-- 
Jérome



More information about the Erp5-dev mailing list