mirror of
https://github.com/LucasVbr/LucasVbr.git
synced 2026-05-13 17:11:52 +00:00
Edit TimeZone to "Europe/Paris"
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
"info": {
|
"info": {
|
||||||
"name": "Lucàs",
|
"name": "Lucàs",
|
||||||
"city": "Rodez",
|
"city": "Rodez",
|
||||||
|
"timezone": "Europe/Paris",
|
||||||
"hi_img": {
|
"hi_img": {
|
||||||
"src": "./img/Hi.gif",
|
"src": "./img/Hi.gif",
|
||||||
"alt": "Wave hand",
|
"alt": "Wave hand",
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ __version__ = "3.0.0"
|
|||||||
from Utils import *
|
from Utils import *
|
||||||
from src.FileUtils import getJsonData
|
from src.FileUtils import getJsonData
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
import pytz
|
||||||
|
|
||||||
CONFIG_FILE = "config.json"
|
CONFIG_FILE = "config.json"
|
||||||
|
|
||||||
@@ -16,7 +17,10 @@ if __name__ == "__main__":
|
|||||||
data["info"] = configData.get("info")
|
data["info"] = configData.get("info")
|
||||||
data["tools"] = convertToolBadges(data.get("tools"))
|
data["tools"] = convertToolBadges(data.get("tools"))
|
||||||
data["weather"] = getWeather(data.get("info").get('city'))
|
data["weather"] = getWeather(data.get("info").get('city'))
|
||||||
data['today'] = datetime.today().strftime("%A %d %B %y, %H:%M")
|
data['today'] = datetime \
|
||||||
|
.today() \
|
||||||
|
.astimezone(pytz.timezone(data['info'].get('timezone'))) \
|
||||||
|
.strftime("%A %d %B %y, %H:%M")
|
||||||
|
|
||||||
buildFile(
|
buildFile(
|
||||||
configData.get("template_file"),
|
configData.get("template_file"),
|
||||||
|
|||||||
+2
-1
@@ -1,4 +1,5 @@
|
|||||||
flask~=2.1.2
|
flask~=2.1.2
|
||||||
colour~=0.1.5
|
colour~=0.1.5
|
||||||
simpleicons~=6.23.0
|
simpleicons~=6.23.0
|
||||||
meteofrance-api~=1.0.2
|
meteofrance-api~=1.0.2
|
||||||
|
pytz~=2021.3
|
||||||
@@ -19,7 +19,7 @@ I'm {{ data.info.name }}, a passionate developer from {{ imageWithSize(data.info
|
|||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
This README is generated every 3 hours.<br>
|
This README is generated every 3 hours.<br>
|
||||||
Last refresh: **{{ data.today }}**<br>
|
Last refresh: **{{ data.today }}** ({{ data.info.timezone }})<br>
|
||||||
{% for img in data.footer_badges -%}
|
{% for img in data.footer_badges -%}
|
||||||
{{ image(img) }}
|
{{ image(img) }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Reference in New Issue
Block a user