Skip to content

Commit 61bbf93

Browse files
committed
When auto disabling by date, be sure to use the last time zone
1 parent e4ace6a commit 61bbf93

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

controller/helper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ public function get_find_username_link()
188188
*/
189189
public function is_expired($row)
190190
{
191-
if ((int) $row['ad_end_date'] > 0 && (int) $row['ad_end_date'] < time())
191+
$latest_timezone_end = time() - (12 * 3600); // UTC-12 is the last timezone
192+
if ((int) $row['ad_end_date'] > 0 && (int) $row['ad_end_date'] < $latest_timezone_end)
192193
{
193194
return true;
194195
}

0 commit comments

Comments
 (0)