Explicit ISO 8601 date string

pull/2417/head
Ben Rogmans 5 months ago committed by GitHub
parent 6b4c391738
commit 64435ab590
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -72,7 +72,7 @@ pub(crate) async fn check<R: Runtime>(
metadata.available = true;
metadata.current_version.clone_from(&update.current_version);
metadata.version.clone_from(&update.version);
metadata.date = update.date.map(|d| d.to_string());
metadata.date = update.date.map(|d| d.format("%Y-%m-%dT%H:%M:%S%:z").to_string());
metadata.body.clone_from(&update.body);
metadata.raw_json.clone_from(&update.raw_json);
metadata.rid = Some(webview.resources_table().add(update));

Loading…
Cancel
Save