Module: website
Branch: master
Commit: f5614e07f9bc16fcfadfd8d44767a928e1bf9a92
URL: https://source.winehq.org/git/website.git/?a=commit;h=f5614e07f9bc16fcfadfd…
Author: Jeremy Newman <jnewman(a)codeweavers.com>
Date: Tue Jun 7 11:21:01 2022 -0500
set_last_modified: allow date in future
---
include/html.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/html.php b/include/html.php
index 46c95f46..9a158435 100644
--- a/include/html.php
+++ b/include/html.php
@@ -439,8 +439,8 @@ class html
if ($convert)
$time = strtotime($time);
- // if time is newer, then update last modified
- if ($time <= time() and $time > $this->last_modified)
+ // if time is newer then update last modified
+ if ($time > $this->last_modified)
{
debug("global", "last-modified: " . gmdate("D, d M Y H:i:s", $time) . " GMT");
$this->last_modified = $time;