start switch to sqlite

This commit is contained in:
2026-06-06 18:19:29 +02:00
parent e162ef10a3
commit 05c69d26ed
9 changed files with 92 additions and 53 deletions

View File

@ -7,7 +7,7 @@ use json::object;
use crate::minecraft::varint::varint_write;
use std::collections::VecDeque;
use chrono::{DateTime, Utc};
use chrono::{DateTime, TimeZone, Utc};
impl Client {
pub async fn status_intent_handle(&self, packet: &mut VecDeque<u8>, packet_id: i32) -> Result<(),String> {
@ -53,7 +53,7 @@ impl Client {
Ok(server) => {
let login = match server.last_login {
Some(date) => {
let datetime: DateTime<Utc> = date.into();
let datetime: DateTime<Utc> = Utc.from_utc_datetime(&date);
format!("{}", datetime.format("%d-%m-%Y at %H:%M").to_string())
},