fix(timetracking): [2f488f42] Passe Zeiterfassung an Berlin-Zeitzone an

This commit is contained in:
2026-01-27 10:26:46 +00:00
parent 856a583dbc
commit fea8790474
2 changed files with 12 additions and 4 deletions

View File

@@ -4,6 +4,10 @@ import sys
import json
import subprocess
from datetime import datetime
from zoneinfo import ZoneInfo # Für Zeitzonen-Handling
# Definiere die Zeitzone für Berlin
BERLIN_TZ = ZoneInfo("Europe/Berlin")
# Fügen Sie das Projekt-Stammverzeichnis zum Python-Pfad hinzu
# Das ist das Verzeichnis, in dem sich das Hook-Skript befindet
@@ -60,14 +64,14 @@ def main():
if commit_message:
report_content = f"✅ New Commit:\n---\n{commit_message}"
timestamp = datetime.utcnow().strftime('%Y-%m-%d %H:%M')
timestamp = datetime.now(BERLIN_TZ).strftime('%Y-%m-%d %H:%M')
notion_blocks = [
{
"object": "block",
"type": "heading_2",
"heading_2": {
"rich_text": [{"type": "text", "text": {"content": f"🤖 Git Commit ({timestamp} UTC)"}}]
"rich_text": [{"type": "text", "text": {"content": f"🤖 Git Commit ({timestamp} Berlin Time)"}}]
}
},
{