Skip to content
This repository was archived by the owner on Jun 17, 2023. It is now read-only.

Commit 2386366

Browse files
authored
Merge pull request #478 from sfinlon/master
2 parents 0f0131d + d5f695a commit 2386366

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cif/store/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,13 +396,13 @@ def handle_indicators_search(self, token, data, **kwargs):
396396
if data.get('days'):
397397
now = arrow.utcnow()
398398
data['reporttimeend'] = '{0}Z'.format(now.format('YYYY-MM-DDTHH:mm:ss'))
399-
now = now.replace(days=-int(data['days']))
399+
now = now.shift(days=-int(data['days']))
400400
data['reporttime'] = '{0}Z'.format(now.format('YYYY-MM-DDTHH:mm:ss'))
401401

402402
if data.get('hours'):
403403
now = arrow.utcnow()
404404
data['reporttimeend'] = '{0}Z'.format(now.format('YYYY-MM-DDTHH:mm:ss'))
405-
now = now.replace(hours=-int(data['hours']))
405+
now = now.shift(hours=-int(data['hours']))
406406
data['reporttime'] = '{0}Z'.format(now.format('YYYY-MM-DDTHH:mm:ss'))
407407

408408
s = time.time()

0 commit comments

Comments
 (0)