Commit Graph
10 Commits
Author SHA1 Message Date
stefankoelle e10c6fc169 demo showcase README.md 2026-08-10 17:01:27 +02:00
stefankoelle 946c2832ea demo showcase 2026-08-10 16:47:13 +02:00
stefankoelle 7bfd7c0ff3 ui emoji 2026-08-07 20:37:33 +02:00
stefankoelle ac07e8f917 license added 2026-08-04 19:28:48 +02:00
stefankoelle 5343896653 Fix: korrigiere Code-Bugs und Dokumentation
- api/main.py: index() Route übernimmt Request-Objekt korrekt (statt {}),
  calendar_label Query-Parameter implementiert (dynamische WHERE-Klausel)
- docker-compose.yml: DB_BOOTSTRAP/DB_ROOT_USER/DB_ROOT_PASSWORD Variablen
  für calendar-sync Service hinzugefügt (waren dokumentiert, aber nie übergeben)
- .env.example: DB_BOOTSTRAP, API_PORT, TIMEZONE hinzugefügt
- AGENTS.md: Zeilennummer sync.py:91→83, gemischte Deutsch/China-Sprache
  bereinigt
- SPEC.md: --entrypoint→command, API_HOST entfernt (nicht implementiert),
  TIMEZONE hinzugefügt, JSON-Beispiele um timezone-Feld erweitert,
  Docker-Compose-Beispiel und Projektstruktur aktualisiert,
  Search als implementiert markiert
- README.md: TIMEZONE und API_PORT in Konfigtationstabelle,
  timezone im JSON-Beispiel
2026-08-04 19:28:39 +02:00
stefankoelle f717d37d07 fix: add missing timezone field to EventsListResponse API response 2026-08-04 19:28:34 +02:00
stefankoelle a2fa805ce8 fix: display local timezone in API and web frontend instead of GMT
- Add TIMEZONE environment variable support (default: UTC)
- Convert naive UTC datetimes from database to local timezone in API responses
- Add timezone field to EventResponse and EventsListResponse Pydantic models
- Update web template to display timezone information
- Update PLAN.md to document timezone changes

This fixes the issue where events at 8:00 UTC would appear as 6:00 GMT by displaying times in the correct local timezone.
2026-08-04 19:28:21 +02:00
stefankoelle 911924d627 fix: replace deprecated datetime.utcnow() with datetime.now(timezone.utc) 2026-08-01 16:42:46 +02:00
stefankoelle 3b1801634c fix: Error Handling + Context Manager für DB-Verbindungen
- try/finally für Connection/Cleanup in allen Endpunkten
- fetch_events() Helper-Funktion reduziert Code-Duplikation
- Exception Logging bei DB-Fehlern
- HTTPException 500 bei Datenbankfehlern
2026-08-01 16:20:32 +02:00
stefankoelle b30c02beb8 feat: REST API + Web-Frontend für Kalenderübersicht
- FastAPI Backend mit /api/events, /api/events/{id}, /api/health Endpoints
- Optionale Suche nach Event-Titel (Query Parameter ?search=...)
- Jinja2 Web-Frontend auf / mit Suchfeld
- Shared DB Connection Module (api/database.py)
- Docker Compose: calendar-api Service hinzugefügt
- Sync.py refactored: nutzt shared database.py
2026-08-01 16:12:07 +02:00