[Erp5-dev] Patch for FormulatorPatch.py

Shrenik Bhura shrenik.bhura at intelliant.net
Thu Aug 10 14:01:11 CEST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Encountered a suspected bug in FormulatorPatch.py while using Base_viewMetadata.

Herein is the suggested patch.


@@ -737,8 +737,8 @@
             return ''

         use_ampm = field.get_value('ampm_time_style')
- -
- -        year = "%04d" % value.year()
+        value = DateTime(value)
+       year = "%04d" % value.year()
         month = "%02d" % value.month()
         day = "%02d" % value.day()
         if use_ampm:


Regards,
SB

- --
Shrenik Bhura
IntelliAnt
5A, Outram Street
Kolkata - 700 017
INDIA
Ph: +91 98310 33483
URL: www.intelliant.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFE2yAHwqjb3kq05PgRAhSAAJ9pcTjjJmHwFYoJD+DFkW+gt7vAnACgjCqv
h2/2WCPYSaEHtcrTc0o57GY=
=+wMJ
-----END PGP SIGNATURE-----



More information about the Erp5-dev mailing list