Bug in SmartDateOld forum URL: forums.lhotka.net/forums/t/4995.aspx
gummi posted on Thursday, June 19, 2008There seems to be a bug in SmartDate in CSLA 3.5. I'm using a code generator (LLBLGenPro) to generate database code. I have to provide TypeConverter for it to change DateTime to Csla.SmartDate but I kept getting type conversion errors. After spending some time on their forum they figured out this bug.
This bug is in line 1300. Replacing it with this code:
if (conversionType == typeof(SmartDate))
return ((IConvertible)_date).ToType(conversionType, provider);
will fix it.
RockfordLhotka replied on Monday, June 23, 2008Thank you for finding that, I will fix it in 3.5.1.
Copyright (c) Marimer LLC