A new interface for LibreTime.
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. |
||
---|---|---|
airtime_mvc | ||
dev_tools | ||
docs | ||
install_full | ||
install_minimal | ||
python_apps | ||
utils | ||
widgets | ||
.gitignore | ||
.zfproject.xml | ||
changelog | ||
CREDITS | ||
INSTALL | ||
LICENSE | ||
LICENSE_3RD_PARTY | ||
README | ||
VERSION |
========================================================================= ========================== AIRTIME ================================= ========================================================================= Airtime is an open source application that provides remote automation of a radio station. Home page: http://airtime.sourcefabric.org/ Major features: * Web-based remote station management. Authorized personnel can add program material, create playlists, and schedule programming all via a web interface. * Automation. Airtime has a scheduler function that enables users to set shows with playlists for playback at a date and time of their choosing. Playlists can be played back multiple times. * Solid, fast playback. Airtime uses the open source Liquidsoap multimedia framework for clean, reliable, fast playback. * Open, extensible architecture. Stations are free to extend and alter all parts of the program code. INSTALLATION ------------ Please see this page for a typical user installation: http://www.sourcefabric.org/en/products/airtime_manuals/ If you are a developer, please see this page: http://wiki.sourcefabric.org/display/CC/Airtime+Dev+Site Quick links to our resources ---------------------------- User Manual: http://www.sourcefabric.org/en/products/airtime_manuals/ Forums and mailing lists: http://forum.sourcefabric.org Bug Tracking: http://dev.sourcefabric.org Code view/review: http://code.sourcefabric.org Public source code hosting: http://github.com/sourcefabric Download link: https://sourceforge.net/projects/airtime/files/ Developer's wiki: http://wiki.sourcefabric.org