summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--eodb/events/management/commands/feed_redmine_activity_csv.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/eodb/events/management/commands/feed_redmine_activity_csv.py b/eodb/events/management/commands/feed_redmine_activity_csv.py
index dd2e093..78f77c7 100644
--- a/eodb/events/management/commands/feed_redmine_activity_csv.py
+++ b/eodb/events/management/commands/feed_redmine_activity_csv.py
@@ -2,6 +2,7 @@ import csv
from django.core.management.base import BaseCommand
from django.utils.dateparse import parse_datetime
+from django.utils.timezone import make_aware
from eodb.events.models import Redmine
@@ -17,6 +18,6 @@ class Command(BaseCommand):
continue
redmine, created = Redmine.objects.get_or_create(journal_id=int(row[0]),
defaults={
- 'author_datetime': parse_datetime(row[1]),
+ 'author_datetime': make_aware(parse_datetime(row[1])),
'module': row[2],
'author_email': row[3]})