aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/misc/httpdate.cpp
diff options
context:
space:
mode:
authorluchko <luchko@yandex-team.ru>2022-02-10 16:48:21 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:21 +0300
commit9f21dcc5d3d7c6e54e7adbaa2abaa6d86ae08c59 (patch)
treefe8d90bbd8376a597fb16b369d09be5fa22eedce /library/cpp/http/misc/httpdate.cpp
parent20fb5622594feb17be2ce26b99ddd6f60a870b3a (diff)
downloadydb-9f21dcc5d3d7c6e54e7adbaa2abaa6d86ae08c59.tar.gz
Restoring authorship annotation for <luchko@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/http/misc/httpdate.cpp')
-rw-r--r--library/cpp/http/misc/httpdate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/http/misc/httpdate.cpp b/library/cpp/http/misc/httpdate.cpp
index 4a3031bbf4d..04c1727adfe 100644
--- a/library/cpp/http/misc/httpdate.cpp
+++ b/library/cpp/http/misc/httpdate.cpp
@@ -54,11 +54,11 @@ int format_http_date(char buf[], size_t size, time_t when) {
GmTimeR(&when, &tms);
#ifndef HTTP_DATE_ISO_8601
- return snprintf(buf, size, "%s, %02d %s %04d %02d:%02d:%02d GMT",
+ return snprintf(buf, size, "%s, %02d %s %04d %02d:%02d:%02d GMT",
wkdays[tms.tm_wday], tms.tm_mday, months[tms.tm_mon],
tms.tm_year + 1900, tms.tm_hour, tms.tm_min, tms.tm_sec);
#else /* ISO 8601 */
- return snprintf(buf, size, "%04d%02d%02dT%02d%02d%02d+0000",
+ return snprintf(buf, size, "%04d%02d%02dT%02d%02d%02d+0000",
tms.tm_year + 1900, tms.tm_mon + 1, tms.tm_mday,
tms.tm_hour, tms.tm_min, tms.tm_sec);
#endif