From 7911359d82b4784798700f1aa04c1c0f1413cbf7 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Wed, 3 Feb 2021 16:23:13 +0100 Subject: [PATCH] change date condition --- ffplayout/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffplayout/utils.py b/ffplayout/utils.py index 5e9bdd9b..0f592570 100644 --- a/ffplayout/utils.py +++ b/ffplayout/utils.py @@ -651,7 +651,7 @@ def get_date(seek_day): return (d - timedelta(1)).strftime('%Y-%m-%d') else: if _playlist.start == 0 and \ - math.isclose(get_time('full_sec'), 86400.0, abs_tol=4): + 4 > 86400.0 - get_time('full_sec') > 0: return (d + timedelta(1)).strftime('%Y-%m-%d') return d.strftime('%Y-%m-%d')