Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merges #622
Closes #622
  • Loading branch information
sduenas committed Mar 5, 2020
2 parents 9f907c2 + f1bdd73 commit 917a9e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions perceval/backends/core/groupsio.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import os
import requests

from grimoirelab_toolkit.datetime import datetime_to_utc
from grimoirelab_toolkit.uris import urijoin

from .mbox import MBox, MailingList, CATEGORY_MESSAGE
Expand Down Expand Up @@ -65,7 +66,7 @@ class Groupsio(MBox):
:param archive: archive to store/retrieve items
:param ssl_verify: enable/disable SSL verification
"""
version = '0.4.0'
version = '0.4.1'

CATEGORIES = [CATEGORY_MESSAGE]

Expand Down Expand Up @@ -206,7 +207,7 @@ def fetch(self, from_date=None):
}

if from_date:
payload['start_time'] = from_date.isoformat()
payload['start_time'] = datetime_to_utc(from_date).isoformat()

filepath = os.path.join(self.dirpath, MBOX_FILE)
success = self._download_archive(url, payload, filepath)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_groupsio.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def test_fetch_from_date(self):
},
{
'group_id': ['7769'],
'start_time': ['2019-01-01T00:00:00']
'start_time': ['2019-01-01T00:00:00 00:00']
}
]

Expand Down

0 comments on commit 917a9e9

Please sign in to comment.