Skip to content

Commit c76b0d0

Browse files
author
Richard Jones
committed
allow single digit seconds in date spec [SF#1447141]
1 parent 36530aa commit c76b0d0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Fixed:
2020
- classhelp popup pagination forgot about "type" (sf bug 1465836)
2121
- umask is now configurable (with the same 0002 default)
2222
- sorting of entries in classhelp popup (sf bug 1449000)
23+
- allow single digit seconds in date spec (sf bug 1447141)
2324

2425

2526
2006-03-03 1.1.1

roundup/date.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: date.py,v 1.84 2006-03-03 02:02:50 richard Exp $
18+
# $Id: date.py,v 1.85 2006-04-27 05:11:28 richard Exp $
1919

2020
"""Date, time and time interval handling.
2121
"""
@@ -45,7 +45,7 @@ def _add_granularity(src, order, value = 1):
4545
((?P<y>\d\d\d\d)([/-](?P<m>\d\d?)([/-](?P<d>\d\d?))?)? # yyyy[-mm[-dd]]
4646
|(?P<a>\d\d?)[/-](?P<b>\d\d?))? # or mm-dd
4747
(?P<n>\.)? # .
48-
(((?P<H>\d?\d):(?P<M>\d\d))?(:(?P<S>\d\d(\.\d+)?))?)? # hh:mm:ss
48+
(((?P<H>\d?\d):(?P<M>\d\d))?(:(?P<S>\d\d?(\.\d+)?))?)? # hh:mm:ss
4949
(?P<o>[\d\smywd\-+]+)? # offset
5050
$''', re.VERBOSE)
5151
serialised_date_re = re.compile(r'''

0 commit comments

Comments
 (0)