mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-05 17:02:32 -05:00
Fix YouTube upcoming stream's embed not being timezone-agnostic (#6527)
This commit is contained in:
@@ -221,7 +221,7 @@ class YoutubeStream(Stream):
|
||||
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(
|
||||
|
||||
Reference in New Issue
Block a user