mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Don't floor newsletter start date
This commit is contained in:
parent
2a4b48d0fa
commit
ad6e314343
1 changed files with 2 additions and 2 deletions
|
@ -403,9 +403,9 @@ class Newsletter(object):
|
|||
|
||||
if self.start_date is None:
|
||||
if self.config['time_frame_units'] == 'days':
|
||||
self.start_date = self.end_date.shift(days=-self.config['time_frame']+1).floor('day')
|
||||
self.start_date = self.end_date.shift(days=-self.config['time_frame'])
|
||||
else:
|
||||
self.start_date = self.end_date.shift(hours=-self.config['time_frame']).floor('hour')
|
||||
self.start_date = self.end_date.shift(hours=-self.config['time_frame'])
|
||||
|
||||
self.end_time = self.end_date.timestamp
|
||||
self.start_time = self.start_date.timestamp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue