sintonia/airtime_mvc/application
Yuchen Wang 6ffecf80c8 CC-2965: Frontend widget displays shows in UTC time
Not only were frontend widgets showing UTC time,
the SQL query was also comparing UTC timestamp with local timestamps,
causing widgets to display shows in the wrong day, etc.

Another problem was that "On air today" widget was simply calling
GetNextShows which returns shows within next 48 hours.

Fixed by:
1. Under models/Show.php:
In the GetCurrentShow/GetNextShows/GetShowsByDayOfWeek functions,
added code to convert UTC timestamp to local timestamp or vice versa,
depending on which one is more suitable, in SQL queries, thus
removing inconsistency in timezones. Also, before returning query result,
added code to convert result to local timezone.

In GetNextShows, added an optional parameter endTime to limit the interval
of shows to get. This is useful for the "On air today" widget.

2. Under models/DateHelper.php:
Added a few timezone functions to help converting timezones easier in Show.php.

3. Under controller/ApiController.php:
Added todayInfoAction which is to be used by "On Air Today" widget.
2011-11-04 16:57:24 -04:00
..
configs Merge branch '1.9.1' into devel 2011-10-14 01:38:52 +02:00
controllers CC-2965: Frontend widget displays shows in UTC time 2011-11-04 16:57:24 -04:00
forms CC-2926: Clicking "Choose File" in support settings to upload image 2011-10-27 10:14:39 -04:00
layouts/scripts CC-2904: Space missing between two boxes on "Playlist Builder" 2011-10-03 14:26:10 -04:00
logging CC-2747: When metadata contains non utf-8 encoding, we should handle it 2011-08-31 14:46:21 -04:00
models CC-2965: Frontend widget displays shows in UTC time 2011-11-04 16:57:24 -04:00
validate CC-2166: Packaging Improvements. Moved the Zend app into airtime_mvc. It is now installed to /var/www/airtime. Storage is now set to /srv/airtime/stor. Utils are now installed to /usr/lib/airtime/utils/. Added install/airtime-dircheck.php as a simple test to see if everything is install/uninstalled correctly. 2011-04-14 18:55:04 -04:00
views CC-2995: Remove "Done Editing" button 2011-10-27 10:20:57 -04:00
Bootstrap.php CC-2936: Soundcloud: handle the case where the soundcloud server 2011-10-05 17:48:25 -04:00