Active
Project:
Community Media TV Schedules
Version:
7.x-2.1-alpha1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Feb 2015 at 19:43 UTC
Updated:
10 Feb 2015 at 00:59 UTC
Jump to comment: Most recent
Comments
Comment #1
emilyf commentedYou can override this in the theme file that's included in the template folder of the module. There is something weird that goes on that we haven't yet debugged where the calendar view's key array is incorrect and seems to apply anything between the hours of midnight and 6am with the same "key"...we get around this at RETN by replacing what you see in line 52 of the calendar-day.tpl file with:
<span class="calendar-hour"><?php if($key == '04:00:00'){ print "Overnight"; }else{ print date('g:i', strtotime($key)); } ?></span><span class="calendar-ampm"> <?php if($key != '04:00:00'){print $hour['ampm'];} ?></span>Note that sometimes the key is set to 05:00:00 or something else -- in your case based on your example I would guess yours is getting put in 06:00:00, so you'll probably need to replace the 04:00:00 with 06:00:00 to make that work in your template override.
If this is happening to a lot of people we could probably put another setting on the setting's page to apply "overnight" in place of a particular time period.