Lieferbericht zeigte UTC (08.09. 22:54 statt 09.09. 00:54): renderer.dt() formatierte DateTime<Utc> ohne Umrechnung. Weitere Stellen hingen an chrono::Local (OS-Zone des Hosts) bzw. hardcodiertem 'Europe/Berlin'. Neu: server.timezone (IANA, Default Europe/Berlin, chrono-tz) und durchgaengig UTC-Instant -> konfigurierte Zone: - Lieferbericht: alle Zeitstempel (Abgeschlossen, Notizen, Scans, erzeugt am) - Belegansicht (fmt_datetime) - ERP-Rueckschreibung delivered_at (Wanduhrzeit) - 'heute'-Ableitung: /me/tours, /dev/resync, /admin/import-erp, Import-Cron + Startup-Catch-up - Completion-Repo: AT TIME ZONE als Bind-Param statt Literal Speicherung bleibt UTC (TIMESTAMPTZ / DateTime<Utc>) - nur Anzeige und Kalendertag-Ableitung nutzen die Zone. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
42 lines
1.2 KiB
TOML
42 lines
1.2 KiB
TOML
[package]
|
|
name = "holzleitner-api"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
authors.workspace = true
|
|
|
|
[[bin]]
|
|
name = "holzleitner-server"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
holzleitner-domain = { workspace = true, features = ["openapi"] }
|
|
holzleitner-application = { workspace = true, features = ["openapi"] }
|
|
holzleitner-infrastructure.workspace = true
|
|
utoipa.workspace = true
|
|
utoipa-swagger-ui.workspace = true
|
|
axum.workspace = true
|
|
tokio.workspace = true
|
|
tower.workspace = true
|
|
tower-http.workspace = true
|
|
tracing.workspace = true
|
|
tracing-subscriber.workspace = true
|
|
tracing-appender.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
uuid.workspace = true
|
|
chrono.workspace = true
|
|
chrono-tz.workspace = true
|
|
thiserror.workspace = true
|
|
anyhow.workspace = true
|
|
toml.workspace = true
|
|
sqlx.workspace = true
|
|
tokio-cron-scheduler.workspace = true
|
|
# Compile-time HTML-Templating für die Admin-Detailansicht (nur hier genutzt).
|
|
askama = "0.12"
|
|
|
|
# Windows-Dienst-Integration (SCM). Nur unter Windows kompiliert; auf
|
|
# anderen Plattformen (z. B. Mac für den Kompiliertest) ausgeblendet.
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows-service.workspace = true
|