VirtualBox

Ignore:
Timestamp:
Mar 21, 2020 1:02:44 PM (5 years ago)
Author:
vboxsync
Message:

TestManager/base.py: Allow a few more timestamp variants.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/core/base.py

    r82968 r83359  
    616616                sError = 'Invalid timezone offset.';
    617617        elif len(sValue) == len('2012-10-08 01:54:06.00'):
    618             oRes = re.match(r'(\d{4})-([01]\d)-([0123])\d ([012]\d):[0-5]\d:([0-6]\d).\d{2}', sValue);
     618            oRes = re.match(r'(\d{4})-([01]\d)-([0123])\d[ Tt]([012]\d):[0-5]\d:([0-6]\d).\d{2}', sValue);
     619        elif len(sValue) == len('2012-10-08 01:54:06.00Z'):
     620            oRes = re.match(r'(\d{4})-([01]\d)-([0123])\d[ Tt]([012]\d):[0-5]\d:([0-6]\d).\d{2}[Zz]', sValue);
    619621        elif len(sValue) == len('9999-12-31 23:59:59.999999'):
    620             oRes = re.match(r'(\d{4})-([01]\d)-([0123])\d ([012]\d):[0-5]\d:([0-6]\d).\d{6}', sValue);
     622            oRes = re.match(r'(\d{4})-([01]\d)-([0123])\d[ Tt]([012]\d):[0-5]\d:([0-6]\d).\d{6}', sValue);
     623        elif len(sValue) == len('9999-12-31 23:59:59.999999Z'):
     624            oRes = re.match(r'(\d{4})-([01]\d)-([0123])\d[ Tt]([012]\d):[0-5]\d:([0-6]\d).\d{6}[Zz]', sValue);
    621625        elif len(sValue) == len('999999-12-31 00:00:00.00'):
    622             oRes = re.match(r'(\d{6})-([01]\d)-([0123])\d ([012]\d):[0-5]\d:([0-6]\d).\d{2}', sValue);
     626            oRes = re.match(r'(\d{6})-([01]\d)-([0123])\d[ Tt]([012]\d):[0-5]\d:([0-6]\d).\d{2}', sValue);
    623627        elif len(sValue) == len('9999-12-31T23:59:59.999999Z'):
    624628            oRes = re.match(r'(\d{4})-([01]\d)-([0123])\d[Tt]([012]\d):[0-5]\d:([0-6]\d).\d{6}[Zz]', sValue);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette