From df174be2bcc6e2ee874f9fb3d2eebcc87957834d Mon Sep 17 00:00:00 2001 From: axxel Date: Sun, 20 Oct 2024 10:45:37 +0200 Subject: [PATCH] ptp2: set fs mtime to oi.ModificationDate instead of local time on the host --- camlibs/ptp2/library.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camlibs/ptp2/library.c b/camlibs/ptp2/library.c index fee18d1aa..b2907e1aa 100644 --- a/camlibs/ptp2/library.c +++ b/camlibs/ptp2/library.c @@ -3410,7 +3410,7 @@ add_object_to_fs_and_path (Camera *camera, uint32_t handle, CameraFilePath *path info.file.width = ob->oi.ImagePixWidth; info.file.height = ob->oi.ImagePixHeight; info.file.size = ob->oi.ObjectSize; - info.file.mtime = time(NULL); + info.file.mtime = ob->oi.ModificationDate; info.preview.fields = GP_FILE_INFO_TYPE | GP_FILE_INFO_WIDTH | GP_FILE_INFO_HEIGHT |