From 93fbc8fc1247cca0d6e3dd65cfb51ec0f37ddf03 Mon Sep 17 00:00:00 2001 From: Avii Date: Mon, 9 Feb 2026 10:45:59 +0100 Subject: [PATCH] timezone and credits --- src/g13/joystick/mod.rs | 2 ++ src/main.rs | 4 ++-- udev | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) delete mode 100644 udev diff --git a/src/g13/joystick/mod.rs b/src/g13/joystick/mod.rs index f9bf91f..698d4e3 100644 --- a/src/g13/joystick/mod.rs +++ b/src/g13/joystick/mod.rs @@ -1,3 +1,5 @@ +// gracefully stolen from https://github.com/gwilymk/arduino-joystick/tree/master/joystick-daemon/src/joystick <3 + mod axis; mod button; mod error; diff --git a/src/main.rs b/src/main.rs index 2e09906..c333489 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,7 +6,7 @@ use embedded_graphics::{ prelude::*, text::{Alignment, Text, TextStyleBuilder}, }; -use time::OffsetDateTime; +use time::{OffsetDateTime, macros::offset}; use crate::g13::{G13, G13_LCD_COLUMNS, G13_LCD_ROWS}; @@ -27,7 +27,7 @@ async fn main() -> Result<(), Box> { .build(); loop { - let now = OffsetDateTime::now_utc(); + let now = OffsetDateTime::now_utc().to_offset(offset!(+1)); let string = format!("{:0>2}:{:0>2}:{:0>2}", now.hour(), now.minute(), now.second()); diff --git a/udev b/udev deleted file mode 100644 index 05310d9..0000000 --- a/udev +++ /dev/null @@ -1 +0,0 @@ -KERNEL=="usb", ATTRS{idVendor}=="", ATTRS{idProduct}=="", "TAG+="systemd", ENV{SYSTEMD_WANTS}="serialdaemon.service" \ No newline at end of file