Skip to content

Commit

Permalink
Tests: Use timezone-aware datetime, since VOEvent assumption is UTC.
Browse files Browse the repository at this point in the history
  • Loading branch information
timstaley committed Dec 4, 2015
1 parent a8db1d4 commit af32654
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion voeventdb/server/tests/fixtures/fake.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
from voeventdb.server.tests.fixtures.testpacket_id import testpacket_identity
from datetime import datetime, timedelta
import voeventparse as vp
import pytz

default_start_dt = datetime(2015, 1, 1)
default_start_dt = datetime(2015, 1, 1, tzinfo=pytz.UTC)

def heartbeat_packets(start=default_start_dt,
interval=timedelta(minutes=15),
Expand Down

0 comments on commit af32654

Please sign in to comment.