timezone and credits

This commit is contained in:
2026-02-09 10:45:59 +01:00
parent dd94bfdafa
commit 93fbc8fc12
3 changed files with 4 additions and 3 deletions

View File

@@ -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<dyn std::error::Error>> {
.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());