[Erp5-dev] Base_FormatDate

Bartek Gorny bartek at redpoint.mn.pl
Mon May 1 12:53:39 CEST 2006


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.



More information about the Erp5-dev mailing list