mirror of
https://github.com/LucasVbr/LucasVbr.git
synced 2026-07-09 14:27:46 +00:00
Edit TimeZone to "Europe/Paris"
This commit is contained in:
@@ -6,6 +6,7 @@ __version__ = "3.0.0"
|
||||
from Utils import *
|
||||
from src.FileUtils import getJsonData
|
||||
from datetime import datetime
|
||||
import pytz
|
||||
|
||||
CONFIG_FILE = "config.json"
|
||||
|
||||
@@ -16,7 +17,10 @@ if __name__ == "__main__":
|
||||
data["info"] = configData.get("info")
|
||||
data["tools"] = convertToolBadges(data.get("tools"))
|
||||
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(
|
||||
configData.get("template_file"),
|
||||
|
||||
Reference in New Issue
Block a user