summaryrefslogtreecommitdiff
path: root/Vote.php
diff options
context:
space:
mode:
Diffstat (limited to 'Vote.php')
-rw-r--r--Vote.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/Vote.php b/Vote.php
index 1d1c302..b27cb5b 100644
--- a/Vote.php
+++ b/Vote.php
@@ -42,11 +42,12 @@ class VoteHooks {
$endDate->setTime(23, 59);
$now = new Datetime();
+ $tz = date_default_timezone_get();
+
if ($now > $endDate) {
- $voteClosed = 'The voting period has ended.';
+ $voteClosed = $msg('vote-ended', $endDate->format('jS F Y, H:i') . " ($tz)");
} else {
- $tz = date_default_timezone_get();
- $text .= $msg('vote-end', $endDate->format('jS F Y, H:i') . " ($tz)");
+ $text .= $msg('vote-will-end', $endDate->format('jS F Y, H:i') . " ($tz)");
$parser->getOutput()->updateCacheExpiry($endDate->getTimestamp() - $now->getTimestamp());
}
}