diff --git a/clientgui/mac/SetVersion.cpp b/clientgui/mac/SetVersion.cpp index b397cdedc7..f375f0ffd2 100644 --- a/clientgui/mac/SetVersion.cpp +++ b/clientgui/mac/SetVersion.cpp @@ -31,6 +31,7 @@ #include #include #include +#include #include // for MAXPATHLEN #include #include "version.h" @@ -141,6 +142,11 @@ int file_exists(const char* path) { int FixInfoPlist_Strings(char* myPath, char* name) { int retval = 0; FILE *f; + time_t cur_time; + struct tm *time_data; + + cur_time = time(NULL); + time_data = localtime( &cur_time ); if (IsFileCurrent(myPath)) return 0; @@ -151,7 +157,7 @@ int FixInfoPlist_Strings(char* myPath, char* name) { fprintf(f, "/* Localized versions of Info.plist keys */\n\n"); fprintf(f, "CFBundleName = \"%s\";\n", name); fprintf(f, "CFBundleShortVersionString = \"%s version %s\";\n", name, BOINC_VERSION_STRING); - fprintf(f, "CFBundleGetInfoString = \"%s version %s, Copyright 2014 University of California.\";\n", name, BOINC_VERSION_STRING); + fprintf(f, "CFBundleGetInfoString = \"%s version %s, Copyright %d University of California.\";\n", name, BOINC_VERSION_STRING, time_data->tm_year+1900); fflush(f); retval = fclose(f); }