generated from PlexSheep/rs-base
fix: use local time instead of Utc #3
This commit is contained in:
parent
90656af7aa
commit
8916736db1
|
@ -27,7 +27,7 @@ fn main() -> Result<(), io::Error> {
|
||||||
let mut terminal = Terminal::new(backend)?;
|
let mut terminal = Terminal::new(backend)?;
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
let raw_time = chrono::Utc::now().round_subsecs(0);
|
let raw_time = chrono::Local::now().round_subsecs(0);
|
||||||
let splits: Vec<String> = raw_time
|
let splits: Vec<String> = raw_time
|
||||||
.naive_local()
|
.naive_local()
|
||||||
.to_string()
|
.to_string()
|
||||||
|
|
Reference in New Issue