Download & Extend

How to limit the range of hours in Days display?

Project:Calendar
Version:7.x-3.0-alpha1
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Hi,

In day display it shows 01.00 to 23.00 in the hour column. How do I set it to be: 08.00 to 18.00?

thanks

Comments

#1

no one? please help

#2

I have the same question, can anyone help?

#3

Subscribe

#4

Status:active» fixed

Edit the day style settings. There is an option for the time grouping. Choose the option to create a custom grouping and put something like the following in it to manually create the time buckets you want to use:

00:00:00,08:00:00,09:00:00,10:00:00,11:00:00,12:00:00,13:00:00,14:00:00,15:00:00,16:00:00,17:00:00,18:00:00

Don't use this with overlapping display, it won't work right. Use it with the non-overlapping display.

#5

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#6

Status:closed (fixed)» active

I'm using this option for grouping, without overlapping: 09:00:00,10:00:00,11:00:00,12:00:00,13:00:00,14:00:00,15:00:00,16:00:0‌0,17:00:00,18:00:00,19:00:00,20:00:00

Hour 16:00:00 doesn't appear and I'm getting an error:
warning: date_format() expects parameter 1 to be DateTime, boolean given in \drupal6_calendar\sites\all\modules\calendar\calendar_multiday\theme\theme.inc on line 790.

The line #790:
$hour = date_format($date, $format_hour);

nobody click here