Skip to content

Commit 8a46bcc

Browse files
committed
Fix date parsing
Float microseconds format is already added in case the date ends with floating points. Adding it always breaks other dates as well as those with floating points.
1 parent 787f8db commit 8a46bcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitlab3/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ def _convert_dates(self, data):
345345

346346
def _convert_gitlab_date(self, datetime_str):
347347
"""Convert GitLab datetime string to datetime object"""
348-
fmt = '%Y-%m-%dT%H:%M:%S.%f'
348+
fmt = '%Y-%m-%dT%H:%M:%S'
349349
offset = None
350350
if datetime_str.endswith('Z'):
351351
datetime_str = datetime_str[:-1]

0 commit comments

Comments
 (0)