Switch timestamps from rfc822 local time to iso8601 UTC

This commit is contained in:
Emi Simpson 2020-01-10 14:30:35 -05:00
parent 651fa716b4
commit 05985583f0
No known key found for this signature in database
GPG Key ID: 68FAB2E2E6DFC98B

View File

@ -72,7 +72,7 @@ fn main() {
app_args.silent, app_args.silent,
) )
.unwrap(); .unwrap();
let downloaded_time = time::now(); let downloaded_time = time::now_utc();
let dom = html_to_dom(&data); let dom = html_to_dom(&data);
walk_and_embed_assets( walk_and_embed_assets(
@ -106,9 +106,9 @@ fn main() {
html.insert_str( html.insert_str(
0, 0,
&format!( &format!(
"<!--- Downloaded from {} on {}using {} v{} -->\n", "<!--- Downloaded from {} on {} using {} v{} -->\n",
&clean_url, &clean_url,
downloaded_time.rfc822(), downloaded_time.rfc3339(),
env!("CARGO_PKG_NAME"), env!("CARGO_PKG_NAME"),
env!("CARGO_PKG_VERSION"), env!("CARGO_PKG_VERSION"),
), ),