-timezone now correct on now playing bar
This commit is contained in:
parent
24da57ae4f
commit
42490d53aa
3 changed files with 5 additions and 2 deletions
|
@ -474,7 +474,8 @@ class Schedule {
|
|||
$timeNow = Schedule::GetSchedulerTime();
|
||||
return array("schedulerTime"=>$timeNow,"previous"=>Schedule::GetPreviousItems($timeNow),
|
||||
"current"=>Schedule::GetCurrentlyPlaying($timeNow),
|
||||
"next"=>Schedule::GetNextItems($timeNow));
|
||||
"next"=>Schedule::GetNextItems($timeNow),
|
||||
"timezone"=> date("T"));
|
||||
}
|
||||
|
||||
public static function GetPreviousItems($timeNow, $prevCount = 1){
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<ul>
|
||||
<li>Station time</li>
|
||||
<li class="time" id="time"></li>
|
||||
<li class="time-zone">CET</li>
|
||||
<li class="time-zone"><span id="time-zone"></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="personal-block">
|
||||
|
|
|
@ -189,6 +189,8 @@ function calcAdditionalData(currentItem, bUpdateGlobalValues){
|
|||
function parseItems(obj){
|
||||
var schedulePosixTime = convertDateToPosixTime(obj.schedulerTime);
|
||||
|
||||
$('#time-zone').text(obj.timezone);
|
||||
|
||||
previousSongs = obj.previous;
|
||||
currentSong = obj.current;
|
||||
nextSongs = obj.next;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue