summaryrefslogtreecommitdiffstats
path: root/src/http.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/http.c')
-rw-r--r--src/http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http.c b/src/http.c
index fff780e0f..22c202b88 100644
--- a/src/http.c
+++ b/src/http.c
@@ -712,8 +712,8 @@ rspamd_http_connection_write_message (struct rspamd_http_connection *conn,
rspamd_snprintf (datebuf, sizeof (datebuf), "%s, %02d %s %4d %02d:%02d:%02d GMT",
http_week[t.tm_wday],
t.tm_mday,
- http_month[t.tm_mon - 1],
- t.tm_year,
+ http_month[t.tm_mon],
+ t.tm_year + 1900,
t.tm_hour,
t.tm_min,
t.tm_sec);