mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Fix YouTube upcoming stream's embed not being timezone-agnostic (#6527)
This commit is contained in:
parent
73958d87f1
commit
4558b72082
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user