@@ 154,8 154,8 @@ async fn file_needs_update(
Ok(url_mtime_header) => {
if level_enabled!(Level::DEBUG) {
debug!(
- "Existing file mtime='{}' vs {} Last-Modified='{}'",
- NaiveDateTime::from_timestamp(file_mtime_ms / 1000, 0),
+ "Existing file mtime='{:?}' vs {} Last-Modified='{}'",
+ NaiveDateTime::from_timestamp_opt(file_mtime_ms / 1000, 0),
url,
url_mtime_header
);
@@ 179,8 179,8 @@ async fn file_needs_update(
(Ok(url_date_header), Ok(url_expires_header)) => {
if level_enabled!(Level::DEBUG) {
debug!(
- "Existing file mtime='{}' vs {} Date='{}' + Expires='{}'",
- NaiveDateTime::from_timestamp(file_mtime_ms / 1000, 0),
+ "Existing file mtime='{:?}' vs {} Date='{}' + Expires='{}'",
+ NaiveDateTime::from_timestamp_opt(file_mtime_ms / 1000, 0),
url,
url_date_header,
url_expires_header