moat-kv-cal 0.1.3__tar.gz → 0.1.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: moat-kv-cal
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Calendar management for MoaT-KV
5
5
  Author-email: Matthias Urlichs <matthias@urlichs.de>
6
6
  Project-URL: homepage, https://m-o-a-t.org
@@ -15,7 +15,7 @@ dependencies = [
15
15
  "moat-util ~= 0.56.4",
16
16
  "aiocaldav",
17
17
  ]
18
- version = "0.1.3"
18
+ version = "0.1.4"
19
19
  keywords = [ "MoaT",]
20
20
  requires-python = ">=3.8"
21
21
  name = "moat-kv-cal"
@@ -82,7 +82,7 @@ async def run_(obj):
82
82
  if ev is None:
83
83
  logger.warning("NO EVT")
84
84
  continue
85
- if evt <= t_now:
85
+ if ev_t <= t_now:
86
86
  if t_al != ev_t:
87
87
  # set alarm message
88
88
  logger.warning("ALARM %s %s", v.summary.value, ev_t)
@@ -91,8 +91,10 @@ async def find_next_alarm(calendar, future=10, now=None, zone=UTC) -> Tuple(
91
91
  return ev, ev_v, ev_t
92
92
 
93
93
 
94
- def next_start(v, now):
94
+ def next_start(v, now, zone=UTC):
95
95
  st = v.dtstart.value
96
+ if isinstance(st,date):
97
+ st=datetime.combine(st,time(0,0,0)).astimezone(zone)
96
98
  try:
97
99
  rule = rrulestr(v.rrule.value, dtstart=st)
98
100
  except AttributeError:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: moat-kv-cal
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Calendar management for MoaT-KV
5
5
  Author-email: Matthias Urlichs <matthias@urlichs.de>
6
6
  Project-URL: homepage, https://m-o-a-t.org
File without changes
File without changes
File without changes
File without changes
File without changes