From 8dc5b94278cb96455af2a21dbb52cbc81f2563ec Mon Sep 17 00:00:00 2001 From: iannesbitt Date: Sat, 30 Nov 2019 23:21:50 -0500 Subject: [PATCH] fixing #2 --- rsudp/c_write.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rsudp/c_write.py b/rsudp/c_write.py index 2cf157d..fb49dc1 100644 --- a/rsudp/c_write.py +++ b/rsudp/c_write.py @@ -72,7 +72,8 @@ def elapse(self, new=False): self.st = UTCDateTime.now() self.y, self.m, self.d = self.st.year, self.st.month, self.st.day self.j = self.st.strftime('%j') - self.newday = UTCDateTime(self.y, self.m, self.d + 1, 0, 0) + self.newday = UTCDateTime(self.y, self.m, self.d, 0, 0) + timedelta(days=1.1) + self.newday = UTCDateTime(self.newday.year, self.newday.month, self.newday.day, 0, 0) if new: self.last = self.newday else: