Skip to content

Commit

Permalink
Display UTC as server time instead of PDT
Browse files Browse the repository at this point in the history
  • Loading branch information
infinite-monkeys committed Dec 14, 2014
1 parent 1ad982f commit 983053c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h1 id="header-title"></h1>
<div class="row table-header">
<div class="col-sm-4" id="wbname-div"><span id="wbname-title"></span></div>
<div class="col-sm-3" id="localtime-div"><span id="localtime-title"></span><br><span id="nowtimezone" class="table-sub-header"><span id="nowtime"></span></span></div>
<div class="col-sm-3" id="psttime-div"><span id="psttime-title"></span><br><span class="table-sub-header">(US Pacific Time)</span></div>
<div class="col-sm-3" id="psttime-div"><span id="psttime-title"></span><br><span class="table-sub-header">(UTC)</span></div>
<div class="col-sm-2" id="waypoint-div"><span id="waypoint-title"></span></div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function refreshall () {
var j = 0;
while(json.worldboss[i].uptime[j]) {
sec = str2sec(json.worldboss[i].uptime[j]);
lsec = sec + ((7 + getTimezone()) * 3600)
lsec = sec + (getTimezone() * 3600)
if (lsec >= 86400) lsec -= 86400;
if (lsec < 0) lsec += 86400;
var tname = (json.worldboss[i].name[clang]?json.worldboss[i].name[clang]:json.worldboss[i].name.en);
Expand Down

0 comments on commit 983053c

Please sign in to comment.