From: Good Guy Date: Sat, 21 Oct 2017 23:53:14 +0000 (-0600) Subject: fix month in snap filename timestamp X-Git-Url: https://git.cinelerra-gg.org/git/?a=commitdiff_plain;ds=sidebyside;h=d84cde299ca545b6c5db1998a151884984213b0f;p=goodguy%2Fhistory.git fix month in snap filename timestamp --- 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;