From 6810e9acd6a06c5b924d82f01a9813644eb31142 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 16 Jul 2022 23:23:49 -0700 Subject: fix(tinder_bio.py): use Los Angeles timezone --- tinder_bio.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tinder_bio.py b/tinder_bio.py index 6d16541..7687711 100644 --- a/tinder_bio.py +++ b/tinder_bio.py @@ -3,6 +3,7 @@ import datetime import time import requests import os +import pytz headers = { "app_version": "6.9.4", @@ -25,7 +26,7 @@ if __name__ == "__main__": headers=headers, data=json.dumps( { - "bio": f"It's {datetime.datetime.now().strftime('%I:%M')} and you're on Tinder instead of watching Neon Genesis Evangelion with me." + "bio": f"It's {datetime.datetime.utcnow().replace(tzinfo=pytz.UTC).astimezone(pytz.timezone('America/Los_Angeles')).strftime('%I:%M')} and you're on Tinder instead of watching Neon Genesis Evangelion with me." } ), ).json() -- cgit v1.2.3