From 0b5c799b2593ed392dd2985ed78d761de9ff88d2 Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Thu, 18 Jul 2013 10:38:00 +0400 Subject: [PATCH] fixed creating recorded file name --- ngx_rtmp_record_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ngx_rtmp_record_module.c b/ngx_rtmp_record_module.c index a28d5a3..d58b7a5 100644 --- a/ngx_rtmp_record_module.c +++ b/ngx_rtmp_record_module.c @@ -397,7 +397,7 @@ ngx_rtmp_record_make_path(ngx_rtmp_session_t *s, } if (ngx_strchr(rracf->suffix.data, '%')) { - ngx_libc_localtime(ngx_cached_time->sec, &tm); + ngx_libc_localtime(rctx->timestamp, &tm); p += strftime((char *) p, l - p, (char *) rracf->suffix.data, &tm); } else { p = ngx_cpymem(p, rracf->suffix.data,