Changeset 3096


Ignore:
Timestamp:
3 Feb 2008, 15:57:45 (17 years ago)
Author:
joachim
Message:

allow /,- or . as dateseparator for input

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/PatchExtendedWidgetsCPSDateTimeWidget.py

    r1828 r3096  
    4040    else:
    4141        if re.match(r'^[0-9]?[0-9]/[0-9]?[0-9]/[0-9]{2,4}$', date) is not None:
    42             d, m, y = date.split('/') # always use d/m/y
     42            d, m, y = re.split(r'[/,\-,\.]',date) # always use d/m/y and use /,- or . as separator
     43            #d, m, y = date.split('/') # always use d/m/y
    4344            # locale = self.translation_service.getSelectedLanguage()
    4445            # if False and locale in ('en', 'hu'):
Note: See TracChangeset for help on using the changeset viewer.