summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-07-16 23:23:49 -0700
committerFuwn <[email protected]>2022-07-16 23:23:49 -0700
commit6810e9acd6a06c5b924d82f01a9813644eb31142 (patch)
treeabaaca86c4f1e79e8cb7e832727d90d2b71d3e74
parentfix(requirements.txt): add requirements file (diff)
downloadtinder-bio-0.1.3.tar.xz
tinder-bio-0.1.3.zip
fix(tinder_bio.py): use Los Angeles timezonev0.1.3
-rw-r--r--tinder_bio.py3
1 files changed, 2 insertions, 1 deletions
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()