~fabrixxm/confy-dev

confy: Correct day for events that are after UTC midnight v1 APPLIED

~edwardbetts: 1
 Correct day for events that are after UTC midnight

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~fabrixxm/confy-dev/patches/42725/mbox | git am -3
Learn more about email & git

[PATCH confy] Correct day for events that are after UTC midnight Export this patch

From: Edward Betts <edward@4angle.com>

Fix for events that happen after midnight in UTC showing on the wrong
day.
---
 src/remotes/pentabarf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/remotes/pentabarf.py b/src/remotes/pentabarf.py
index 45647da..99eb322 100644
--- a/src/remotes/pentabarf.py
+++ b/src/remotes/pentabarf.py
@@ -79,7 +79,7 @@ def import_pentabarf(xmlstr:str, url:str):
            )
            end = eevent.find('duration').text.split(":")
            end = start + datetime.timedelta(hours=int(end[0]), minutes=int(end[1]))
            evtdate = start.date()
            evtdate = datetime.datetime.strptime(date, "%Y-%m-%d").date()
            room = _get_text(eevent, 'room')
            slug = _get_text(eevent, 'slug')
            title = _get_text(eevent, 'title')
-- 
2.38.5
Merged. Thank you!