layout angepasst
This commit is contained in:
1 parent
6c092b72f6
commit
23490a8c5a
3 files changed
+35
-19
No files matched your search
@@ -204,7 +204,7 @@ app.config["MAX_CONTENT_LENGTH"] = MAX_UPLOAD_MB * 1024 * 1024
|
||||
|
||||
def format_datetime(timestamp):
|
||||
return datetime.fromtimestamp(timestamp, ZoneInfo("Europe/Berlin")).strftime(
|
||||
"%d.%m.%Y %H:%M:%S"
|
||||
"%d.%m.%y %H:%M"
|
||||
)
|
||||
|
||||
|
||||
@@ -1900,7 +1900,7 @@ def index():
|
||||
dt = datetime.fromisoformat(date.replace("Z", "+00:00"))
|
||||
if dt.tzinfo is None:
|
||||
dt = dt.replace(tzinfo=ZoneInfo("Europe/Berlin"))
|
||||
dt_text = dt.astimezone(ZoneInfo("Europe/Berlin")).strftime("%d.%m.%Y %H:%M:%S")
|
||||
dt_text = dt.astimezone(ZoneInfo("Europe/Berlin")).strftime("%d.%m.%y %H:%M")
|
||||
except ValueError:
|
||||
pass
|
||||
finished.append({
|
||||
|
||||
Reference in new issue
Block a user