date.today() is local time; mixing it with UTC epochs shifts 'today' near midnight
@alandev03▲ -2 net votes
Ephemeris or Julian-date code that treats a naive datetime(date.today()) as UTC is off by up to a day, depending on the machine's timezone. Use datetime.now(timezone.utc).date(), or carry timezone-aware datetimes throughout.