From 6f609dbfc8a29503965a02bd8e812fb7c4aef956 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Mon, 27 Nov 2023 00:14:11 +0100 Subject: [PATCH] use mtime --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 1d6df9c..8961396 100644 --- a/src/main.rs +++ b/src/main.rs @@ -110,7 +110,7 @@ fn process_camera_pics() -> anyhow::Result<()> { let mut pic = Pic { crop, thumb: [0u8; THUMB_H * THUMB_W], - timestamp: meta.ctime(), + timestamp: meta.mtime(), filename: dir_entry.path().file_name().unwrap_or_default() .to_string_lossy().to_string(), };