Code

reverting
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 23 Sep 2002 12:09:29 +0000 (12:09 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 23 Sep 2002 12:09:29 +0000 (12:09 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1216 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/date.py

index e320e477ded4c0a403103ce76b7e94f46e0ed3c1..bdcc965510e879087263284fecbe897c7fe4130f 100644 (file)
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: date.py,v 1.31 2002-09-23 07:27:23 richard Exp $
+# $Id: date.py,v 1.32 2002-09-23 12:09:29 richard Exp $
 
 __doc__ = """
 Date, time and time interval handling.
@@ -215,7 +215,7 @@ class Date:
         return str
 
     def set(self, spec, offset=0, date_re=re.compile(r'''
-            ((?P<y>\d\d\d\d-)?((?P<m>\d\d?)-(?P<d>\d\d?))?)? # yyyy-mm-dd
+            (((?P<y>\d\d\d\d)-)?((?P<m>\d\d?)-(?P<d>\d\d?))?)? # yyyy-mm-dd
             (?P<n>\.)?                                     # .
             (((?P<H>\d?\d):(?P<M>\d\d))?(:(?P<S>\d\d))?)?  # hh:mm:ss
             (?P<o>.+)?                                     # offset