summaryrefslogtreecommitdiff
path: root/time/win32/timestr.c
diff options
context:
space:
mode:
Diffstat (limited to 'time/win32/timestr.c')
-rw-r--r--time/win32/timestr.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/time/win32/timestr.c b/time/win32/timestr.c
index 513418357..6c93c6290 100644
--- a/time/win32/timestr.c
+++ b/time/win32/timestr.c
@@ -159,7 +159,8 @@ APR_DECLARE(apr_status_t) apr_ctime(char *date_str, apr_time_t t)
#ifndef _WIN32_WCE
int win32_strftime_extra(char *s, size_t max, const char *format,
- const struct tm *tm) {
+ const struct tm *tm)
+{
/* If the new format string is bigger than max, the result string won't fit
* anyway. If format strings are added, made sure the padding below is
* enough */
@@ -192,6 +193,11 @@ int win32_strftime_extra(char *s, size_t max, const char *format,
i += 2;
j += 11;
break;
+ case 'R':
+ memcpy(new_format + j, "%H:%M", 5);
+ i += 2;
+ j += 5;
+ break;
case 'T':
memcpy(new_format + j, "%H:%M:%S", 8);
i += 2;