aboutsummaryrefslogtreecommitdiffstats
path: root/src/renderer.rs
diff options
context:
space:
mode:
authorIvkinStanislav <76910130+IvkinStanislav@users.noreply.github.com>2022-11-10 20:30:01 +0000
committerGitHub <noreply@github.com>2022-11-10 20:30:01 +0000
commit4182913eb4d3b91f988919bc45c4d46ac8d01844 (patch)
tree7b9690ab9ca745b7eb0e1868c978dfa031922515 /src/renderer.rs
parentChange DateTime format (diff)
downloadminiserve-4182913eb4d3b91f988919bc45c4d46ac8d01844.tar.gz
miniserve-4182913eb4d3b91f988919bc45c4d46ac8d01844.zip
Update datetime format
Co-authored-by: Sven-Hendrik Haase <svenstaro@gmail.com>
Diffstat (limited to 'src/renderer.rs')
-rw-r--r--src/renderer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/renderer.rs b/src/renderer.rs
index d7b00ec..0577b80 100644
--- a/src/renderer.rs
+++ b/src/renderer.rs
@@ -623,7 +623,7 @@ fn page_header(title: &str, file_upload: bool, favicon_route: &str, css_route: &
fn convert_to_utc(src_time: Option<SystemTime>) -> Option<String> {
src_time
.map(DateTime::<Local>::from)
- .map(|date_time| date_time.format("%Y/%m/%d %H:%M:%S %:z").to_string())
+ .map(|date_time| date_time.format("%Y-%m-%d %H:%M:%S %:z").to_string())
}
/// Converts a SystemTime to a string readable by a human,