--- rsync/options.c 2013-02-26 16:52:24.952202605 +0100 +++ rsync/options.c 2013-02-26 16:58:21.804183435 +0100 @@ -161,6 +161,7 @@ char *logfile_name = NULL; char *logfile_format = NULL; char *stdout_format = NULL; +char *time_format = NULL; char *password_file = NULL; char *rsync_path = RSYNC_PATH; char *backup_dir = NULL; @@ -420,6 +421,7 @@ rprintf(F," -P same as --partial --progress\n"); rprintf(F," -i, --itemize-changes output a change-summary for all updates\n"); rprintf(F," --out-format=FORMAT output updates using the specified FORMAT\n"); + rprintf(F," --time-format=FORMAT time output using the specified FORMAT\n"); rprintf(F," --log-file=FILE log what we're doing to the specified FILE\n"); rprintf(F," --log-file-format=FMT log updates using the specified FMT\n"); rprintf(F," --password-file=FILE read daemon-access password from FILE\n"); @@ -602,6 +604,7 @@ {"log-file", 0, POPT_ARG_STRING, &logfile_name, 0, 0, 0 }, {"log-file-format", 0, POPT_ARG_STRING, &logfile_format, 0, 0, 0 }, {"out-format", 0, POPT_ARG_STRING, &stdout_format, 0, 0, 0 }, + {"time-format", 0, POPT_ARG_STRING, &time_format, 0, 0, 0 }, {"log-format", 0, POPT_ARG_STRING, &stdout_format, 0, 0, 0 }, /* DEPRECATED */ {"itemize-changes", 'i', POPT_ARG_NONE, 0, 'i', 0, 0 }, {"no-itemize-changes",0, POPT_ARG_VAL, &itemize_changes, 0, 0, 0 }, --- rsync/util.c 2011-04-23 00:51:55.000000000 +0200 +++ rsync/util.c 2013-02-26 17:15:21.000000000 +0100 @@ -31,6 +31,7 @@ extern int human_readable; extern int preserve_xattrs; extern char *module_dir; +extern char *time_format; extern unsigned int module_dirlen; extern mode_t orig_umask; extern char *partial_dir; @@ -1327,7 +1328,11 @@ char *p; #ifdef HAVE_STRFTIME - strftime(TimeBuf, sizeof TimeBuf - 1, "%Y/%m/%d %H:%M:%S", tm); + if (time_format) { + strftime(TimeBuf, sizeof TimeBuf - 1, time_format, tm); + } else { + strftime(TimeBuf, sizeof TimeBuf - 1, "%Y/%m/%d %H:%M:%S", tm); + } #else strlcpy(TimeBuf, asctime(tm), sizeof TimeBuf); #endif