From d84cde299ca545b6c5db1998a151884984213b0f Mon Sep 17 00:00:00 2001 From: Good Guy Date: Sat, 21 Oct 2017 17:53:14 -0600 Subject: [PATCH] fix month in snap filename timestamp --- cinelerra-5.1/cinelerra/editpopup.C | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cinelerra-5.1/cinelerra/editpopup.C b/cinelerra-5.1/cinelerra/editpopup.C index fc1da9d0..5c8291a8 100644 --- a/cinelerra-5.1/cinelerra/editpopup.C +++ b/cinelerra-5.1/cinelerra/editpopup.C @@ -385,7 +385,8 @@ int SnapshotMenuItem::handle_event() time_t tt; time(&tt); struct tm tm; localtime_r(&tt,&tm); sprintf(filename,"%s/snap_%04d%02d%02d-%02d%02d%02d.%s", - preferences->snapshot_path, 1900+tm.tm_year,tm.tm_mon,tm.tm_mday, + preferences->snapshot_path, + 1900+tm.tm_year,1+tm.tm_mon,tm.tm_mday, tm.tm_hour,tm.tm_min,tm.tm_sec, exts[mode]); int fw = edl->get_w(), fh = edl->get_h(); int fcolor_model = edl->session->color_model; -- 2.26.2