Ignore:
Timestamp:
26 Jan 2012, 08:59:05 (13 years ago)
Author:
Henrik Bettermann
Message:

In import files we can use the hash symbol at the end of a date string to
avoid annoying automatic date transformation by Excel or Calc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/widgets/datewidget.py

    r7196 r7515  
    3939        else:
    4040            try:
     41                # In import files we can use the hash symbol at the end of a
     42                # date string to avoid annoying automatic date transformation
     43                # by Excel or Calc
     44                input = input.strip('#')
    4145                value = datetime.strptime(input, self.date_format)
    4246            except (ValueError, IndexError), v:
Note: See TracChangeset for help on using the changeset viewer.