From 0190f3f32ea9312d73db8fdb5c2024f1b2b320d2 Mon Sep 17 00:00:00 2001 From: yohn-maistre Date: Tue, 4 Apr 2023 17:01:22 +0900 Subject: [PATCH] added beststories as a 2nd msg --- script_remote.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script_remote.py b/script_remote.py index 69ded86..ea9a21d 100644 --- a/script_remote.py +++ b/script_remote.py @@ -69,7 +69,9 @@ def get_item(item_id): def sendtop_to_webhook(posts): # Kirim payload TOP POSTS dalam JSON ke URL Discord Webhook - current_date = dt.date.today().strftime('%B %d, %Y') + timezone = pytz.timezone('Asia/Jayapura') + current_datetime = dt.datetime.now(timezone) + current_date = current_datetime.strftime('%B %d, %Y') payload = { 'username': "Y Combinator's Hacker News",