Changeset 11737 for main/waeup.kofa/trunk/src/waeup/kofa/utils
- Timestamp:
- 6 Jul 2014, 16:15:52 (11 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/utils
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/utils/batching.py
r10027 r11737 425 425 value = value.encode('utf-8') 426 426 elif isinstance(value, datetime.datetime): 427 value = str(value) 427 #value = str(value) 428 value = str('%s#' % value) # changed 2014-07-06, see ticket #941 428 429 elif isinstance(value, datetime.date): 429 430 # Order is important here: check for date after datetime as -
main/waeup.kofa/trunk/src/waeup/kofa/utils/tests/test_batching.py
r9797 r11737 282 282 self.assertEqual(result6, '2012-04-01#') 283 283 # datetimes are formatted as yyyy-mm-dd hh:mm:ss 284 self.assertEqual(result7, '2012-04-01 12:01:01 ')284 self.assertEqual(result7, '2012-04-01 12:01:01#') 285 285 return 286 286
Note: See TracChangeset for help on using the changeset viewer.