I dislike American date
This commit is contained in:
parent
1dcfbb40ca
commit
f3fc517d08
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -1105,7 +1105,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "kon_cmds"
|
name = "kon_cmds"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"kon_libs",
|
"kon_libs",
|
||||||
"kon_tokens",
|
"kon_tokens",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "kon_cmds"
|
name = "kon_cmds"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
@ -221,7 +221,7 @@ fn fmt_dt(input: &str) -> Option<String> {
|
|||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
let date = format!("{}/{}/{}", date_parts[1], date_parts[2], date_parts[0]);
|
let date = format!("{}/{}/{}", date_parts[2], date_parts[1], date_parts[0]);
|
||||||
let time = parts[1].trim_end_matches('Z');
|
let time = parts[1].trim_end_matches('Z');
|
||||||
|
|
||||||
Some(format!("{date} {time}"))
|
Some(format!("{date} {time}"))
|
||||||
|
Loading…
Reference in New Issue
Block a user