-timezone now correct on now playing bar

This commit is contained in:
mkonecny 2011-01-31 11:47:52 -05:00
parent 24da57ae4f
commit 42490d53aa
3 changed files with 5 additions and 2 deletions

View file

@ -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){

View file

@ -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">

View file

@ -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;