From 43f3e686c62a2882a0be77ce0961cedfb0173fe9 Mon Sep 17 00:00:00 2001 From: joyqi Date: Sun, 19 Feb 2017 00:46:50 +0800 Subject: [PATCH] fix #532 --- var/Widget/Archive.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/Widget/Archive.php b/var/Widget/Archive.php index 9feea090..a87a1cb6 100644 --- a/var/Widget/Archive.php +++ b/var/Widget/Archive.php @@ -805,7 +805,7 @@ class Widget_Archive extends Widget_Abstract_Contents /** 获取起始GMT时间的unix时间戳 */ $from = mktime(0, 0, 0, $fromMonth, $fromDay, $year) - $this->options->timezone + $this->options->serverTimezone; $to = mktime(23, 59, 59, $toMonth, $toDay, $year) - $this->options->timezone + $this->options->serverTimezone; - $select->where('table.contents.created > ? AND table.contents.created < ?', $from, $to); + $select->where('table.contents.created >= ? AND table.contents.created < ?', $from, $to); } /** 保存密码至cookie */