Shrenik Bhura
2006-08-10 12:01:11 UTC
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
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