正在显示
1 个修改的文件
包含
0 行增加
和
5 行删除
| @@ -161,11 +161,6 @@ string srs_path_build_timestamp(string template_path) | @@ -161,11 +161,6 @@ string srs_path_build_timestamp(string template_path) | ||
| 161 | 161 | ||
| 162 | // [2006], replace with current year. | 162 | // [2006], replace with current year. |
| 163 | if (true) { | 163 | if (true) { |
| 164 | - snprintf(buf, sizeof(buf), "%d", 1900 + tm->tm_year); | ||
| 165 | - path = srs_string_replace(path, "[2006]", buf); | ||
| 166 | - } | ||
| 167 | - // [2006], replace with current year. | ||
| 168 | - if (true) { | ||
| 169 | snprintf(buf, sizeof(buf), "%04d", 1900 + tm->tm_year); | 164 | snprintf(buf, sizeof(buf), "%04d", 1900 + tm->tm_year); |
| 170 | path = srs_string_replace(path, "[2006]", buf); | 165 | path = srs_string_replace(path, "[2006]", buf); |
| 171 | } | 166 | } |
-
请 注册 或 登录 后发表评论