randomcarl / cr-data-manager

Automatically exported from code.google.com/p/cr-data-manager
0 stars 0 forks source link

DateTime not written in user defined format #94

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
when DateTime value is written by an action to a string field, like:

<<Notes.Calc:'Added: ' + {AddedTime}>>

the DateTime value is not written in the format defined by the user in user.ini.

Original issue reported on code.google.com by rainer.c...@googlemail.com on 8 Jun 2013 at 6:46

GoogleCodeExporter commented 9 years ago
fixed by:

fieldContent = self.castTypeSingleValue(theField, unicode(fieldContent))
if fieldName in self.ruleFile.dateTimeKeys:
    fieldContentToDT = System.DateTime.Parse(fieldContent)
    fieldContent = System.DateTime.ToString(fieldContentToDT,self.dateTimeFormat)

Original comment by rainer.c...@googlemail.com on 8 Jun 2013 at 6:48