Timezone now CET

This commit is contained in:
2026-05-01 18:11:40 +02:00
parent 4fc1c2eeb8
commit 92fdb87cf0
5 changed files with 44 additions and 5 deletions

View File

@@ -5,6 +5,6 @@ CREATE TABLE IF NOT EXISTS tickets (
description TEXT,
room SMALLINT,
status VARCHAR(15) NOT NULL DEFAULT 'ToDo',
date TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
date TIMESTAMP WITH TIME ZONE DEFAULT now(),
user_id SMALLINT DEFAULT 1
);

View File

@@ -11,7 +11,7 @@ pub struct Ticket {
pub description: String,
pub room: i16,
pub status: String,
pub date: chrono::NaiveDateTime,
pub date: chrono::DateTime<chrono::Utc>,
pub user_id: i16,
}
@@ -23,7 +23,7 @@ pub struct TicketResponse {
pub description: String,
pub room: i16,
pub status: String,
pub date: chrono::NaiveDateTime,
pub date: chrono::DateTime<chrono::Utc>,
pub user_id: i16,
pub user_first_name: String,
pub user_last_name: String,