From efb0d077d1388e777e60201c35d961caa582023a Mon Sep 17 00:00:00 2001 From: John Emmas Date: Fri, 16 Jul 2021 12:29:07 +0100 Subject: [PATCH] Substitute %T when calling 'strftime()' (%T isn't supported by all compilers) --- libs/ardour/vst2_scan.cc | 4 ++-- libs/ardour/vst3_scan.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/ardour/vst2_scan.cc b/libs/ardour/vst2_scan.cc index 14f0854fc3..48921a0bd4 100644 --- a/libs/ardour/vst2_scan.cc +++ b/libs/ardour/vst2_scan.cc @@ -643,9 +643,9 @@ touch_cachefile (std::string const& path, std::string const& cache_file, bool ve char vsttme[128]; struct tm local_time; localtime_r (&utb.modtime, &local_time); - strftime (v2itme, sizeof(v2itme), "%Y-%m-%d %T", &local_time); + strftime (v2itme, sizeof(v2itme), "%Y-%m-%d %H:%M:%S", &local_time); localtime_r (&mtime, &local_time); - strftime (vsttme, sizeof(vsttme), "%Y-%m-%d %T", &local_time); + strftime (vsttme, sizeof(vsttme), "%Y-%m-%d %H:%M:%S", &local_time); PBD::info << "Touch cachefile: set mtime = " << utb.modtime << " (" << v2itme << "), plugin mtime = " << sb_vst.st_mtime << " (" << vsttme << ")" << endmsg; diff --git a/libs/ardour/vst3_scan.cc b/libs/ardour/vst3_scan.cc index 23a81e5fbb..4f1a924af6 100644 --- a/libs/ardour/vst3_scan.cc +++ b/libs/ardour/vst3_scan.cc @@ -426,9 +426,9 @@ touch_cachefile (std::string const& module_path, std::string const& cache_file, char vsttme[128]; struct tm local_time; localtime_r (&utb.modtime, &local_time); - strftime (v3itme, sizeof(v3itme), "%Y-%m-%d %T", &local_time); + strftime (v3itme, sizeof(v3itme), "%Y-%m-%d %H:%M:%S", &local_time); localtime_r (&mtime, &local_time); - strftime (vsttme, sizeof(vsttme), "%Y-%m-%d %T", &local_time); + strftime (vsttme, sizeof(vsttme), "%Y-%m-%d %H:%M:%S", &local_time); PBD::info << "Touch cachefile: set mtime = " << utb.modtime << " (" << v3itme << "), plugin mtime = " << sb_vst.st_mtime << " (" << vsttme << ")" << endmsg;