Skip to content

Commit

Permalink
Fix YouTube upcoming stream's embed not being timezone-agnostic (Cog-…
Browse files Browse the repository at this point in the history
  • Loading branch information
karlsbjorn authored Feb 15, 2025
1 parent 73958d8 commit 4558b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redbot/cogs/streams/streamtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ async def make_embed(self, data):
if vid_data["liveStreamingDetails"].get("scheduledStartTime", None) is not None:
if "actualStartTime" not in vid_data["liveStreamingDetails"]:
start_time = parse_time(vid_data["liveStreamingDetails"]["scheduledStartTime"])
start_time_unix = time.mktime(start_time.timetuple())
start_time_unix = start_time.timestamp()
start_in = start_time - datetime.now(timezone.utc)
if start_in.total_seconds() > 0:
embed.description = _("This stream will start <t:{time}:R>").format(
Expand Down

0 comments on commit 4558b72

Please sign in to comment.