Skip to content

Commit 8665002

Browse files
authored
Merge pull request #174 from skoranda/utc_timezone_for_interval_trigger
Add timezone argument for IntervalTrigger
2 parents a7eeafb + 34f9b79 commit 8665002

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pyff/api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from pyramid.events import NewRequest
2020
import requests
2121
import threading
22+
import pytz
2223

2324
log = get_log(__name__)
2425

@@ -397,6 +398,7 @@ def mkapp(*args, **kwargs):
397398
start_date=start,
398399
seconds=config.update_frequency,
399400
replace_existing=True,
400-
max_instances=1)
401+
max_instances=1,
402+
timezone=pytz.utc)
401403

402404
return ctx.make_wsgi_app()

0 commit comments

Comments
 (0)