Kimai 2 provides a calendar view, which displays your timesheet entries in a easy readable format. You can choose between a monthly, weekly and daily view.
The calendar view look and feel is configured with the config keys below
(see configurations) or in the system configurations screen:
kimai: calendar: week_numbers: true weekends: true day_limit: 4 slot_duration: '00:30:00' businessHours: days: [1, 2, 3, 4, 5] begin: '08:00' end: '18:00' visibleHours: begin: '00:00' end: '24:00'
week_numbers- whether week numbers should be displayed in the monthly view (default: true)
weekends- whether weekends should be displayed (default: true)
day_limit- defined the max amount of items to be displayed for one day in the monthly view (default: 4)
slot_duration- defines the duration for each calendar slot (row) in the week and day views (default: 00:30:00 = 30 minutes)
businessHours.days- defines your working days, which will be highlighted in the weekly and daily view. counting starts with sunday and the index 0, so 1 = monday, …, 6 = saturday. (default: 1-5 / monday to friday)
businessHours.begin- the start time of your working day, which will be highlighted in the weekly and daily view (default: 08:00)
businessHours.end- the end time of your working day, which will be highlighted in the weekly and daily view (default: 18:00)
visibleHours.begin- the start time of the calendars week and day view (default: 00:00)
visibleHours.end- the end time of the calendars week and day view (default: 24:00)
If you want to embed Google calendars e.g. to display regional holidays or company events you can import (multiple) Google calendars.
kimai.calendar.google.sourcesnode, each must have its own name (like
companyin this example)
kimai: calendar: google: api_key: 'your-restricted-google-api-key' sources: holidays: id: 'firstname.lastname@example.org' color: '#ccc' company: id: 'email@example.com' color: '#cc0000'
A user can change the initial view for the calendar, see user preferences documentation.