diff options
author | BlueRaja <BlueRaja.admin@gmail.com> | 2013-03-09 11:55:41 -0600 |
---|---|---|
committer | BlueRaja <BlueRaja.admin@gmail.com> | 2013-03-09 11:55:41 -0600 |
commit | 68fffed7215b932b4906428de043eb5ae010c372 (patch) | |
tree | aac9dfda0be639cd46a43f9485a1c9529b8f6fdd | |
parent | 9d3c5cea8abc46db7ca0fcbd97a11d7918095cbf (diff) | |
download | pathery-68fffed7215b932b4906428de043eb5ae010c372.tar.xz |
Fix for "this map is currently running" displaying when it shouldn't be
-rw-r--r-- | pages/scores.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pages/scores.php b/pages/scores.php index 4154fea..3f252ec 100644 --- a/pages/scores.php +++ b/pages/scores.php @@ -34,6 +34,7 @@ playerWallEmblem = '<?PHP echo isset($wallEmblem) ? $wallEmblem : ''; ?>'; var startOfPathery = new Date(2011,2,13);
var serverToday = new Date(<? echo $jsDate; ?>);
+var serverNow = new Date(<? echo time(); ?>*1000);
var pointerTime = new Date();
pointerTime.setTime(serverToday.getTime())
@@ -268,7 +269,7 @@ function formatMapThumbForNav(json) { var mapClass = '';
var toolTip = 'Inactive map';
- var isCurrentlyRunning = mapDate.getTime() > serverToday.getTime();
+ var isCurrentlyRunning = mapDate.getTime() > serverNow.getTime();
if (isCurrentlyRunning) {
mapClass = ' currentlyRunning';
|