Ignore:
Timestamp:
6 Jul 2014, 16:15:52 (11 years ago)
Author:
Henrik Bettermann
Message:

Append hash '#' also to datetimes to circumvent unwanted excel automatic.

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  
    425425            value = value.encode('utf-8')
    426426        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
    428429        elif isinstance(value, datetime.date):
    429430            # Order is important here: check for date after datetime as
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/tests/test_batching.py

    r9797 r11737  
    282282        self.assertEqual(result6, '2012-04-01#')
    283283        # 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#')
    285285        return
    286286
Note: See TracChangeset for help on using the changeset viewer.