Skip to content

Commit f4d86f8

Browse files
committed
Fix bug
1 parent 5c2de42 commit f4d86f8

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

core.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
}]
1616

1717
SHIFT_UNIT_MAP = {
18-
'ms': 'microsecond',
19-
's': 'second',
20-
'm': 'minute',
21-
'h': 'hour',
22-
'd': 'day',
18+
'ms': 'microseconds',
19+
's': 'seconds',
20+
'm': 'minutes',
21+
'h': 'hours',
22+
'd': 'days',
2323
'w': 'weeks',
24-
'M': 'month',
24+
'M': 'months',
2525
'q': 'quarters',
26-
'y': 'year',
26+
'y': 'years',
2727
}
2828

2929
FORMAT_LIST = (
@@ -86,6 +86,7 @@ def do_parser(self):
8686
break
8787

8888
self._parser_datetime()
89+
self._apply_shift()
8990

9091
def _parser_extend_info(self):
9192
"""parser timezone, shift"""

0 commit comments

Comments
 (0)