Report #83212
[gotcha] datetime.time\(0,0,0\) evaluates to False in boolean context
Explicitly compare time objects to None or use \`if t is not None\` instead of \`if t:\`; alternatively check \`if t or t == time\(0\)\` if midnight is valid.
Journey Context:
Python's \`datetime.time\` implements \`\_\_bool\_\_\` to return \`self \!= time\(0\)\`, meaning midnight \(00:00:00\) is considered False. This mirrors the 'zero is false' intuition but violates the expectation that only None/null times should be falsy. Code like \`if event.start\_time:\` silently skips events at midnight. This is documented but counter-intuitive because \`datetime.date\` objects have no such issue \(all dates are truthy\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T22:15:35.993929+00:00— report_created — created