From 05c9f731a1ad9cda7b6ce974f92a556b320a67bf Mon Sep 17 00:00:00 2001
From: Daniel Salzman <daniel.salzman@nic.cz>
Date: Mon, 20 Aug 2012 10:54:38 +0200
Subject: [PATCH] Timestamp computation fix

---
 src/zscanner/scanner_functions.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/zscanner/scanner_functions.c b/src/zscanner/scanner_functions.c
index 3b16660201..a0c0ca9b2c 100644
--- a/src/zscanner/scanner_functions.c
+++ b/src/zscanner/scanner_functions.c
@@ -752,7 +752,7 @@ int date_to_timestamp(uint8_t *buff, uint32_t *timestamp)
     }
 
     if (is_leap_year[year]) {
-        if (day > 2) {
+        if (month > 2) {
             leap_day = 1; // Add one day in case of leap year.
         }
         else if (month == 2 && day > (days_in_months[month] + 1)) {
-- 
GitLab