diff options
| author | Fuwn <[email protected]> | 2022-07-16 23:23:49 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-07-16 23:23:49 -0700 |
| commit | 6810e9acd6a06c5b924d82f01a9813644eb31142 (patch) | |
| tree | abaaca86c4f1e79e8cb7e832727d90d2b71d3e74 | |
| parent | fix(requirements.txt): add requirements file (diff) | |
| download | tinder-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.py | 3 |
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() |