{"id":5330,"date":"2021-01-19T11:23:55","date_gmt":"2021-01-19T11:23:55","guid":{"rendered":"https:\/\/docs.daftra.com\/tutorial\/%d8%a5%d8%b6%d8%a7%d9%81%d8%a9-%d9%88%d8%b1%d8%af%d9%8a%d8%a9\/"},"modified":"2026-11-08T10:18:45","modified_gmt":"2026-11-08T10:18:45","slug":"adding-a-shift","status":"publish","type":"tutorial","link":"https:\/\/docs.daftra.com\/en\/tutorial\/adding-a-shift\/","title":{"rendered":"Add an Employee Shift"},"content":{"rendered":"<div dir=\"ltr\" lang=\"en\">\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">A shift defines the employee&#8217;s working days and times: the start and end of the shift, the period in which sign-in is allowed, the period in which sign-out is allowed, and the lateness grace period. Based on it, the system evaluates the employee&#8217;s attendance logs when calculating attendance. This guide explains adding both types of shift, setting up night shifts that end the next day, assigning the shift to employees, and all restrictions and messages, including the &#8220;out of shift range&#8221; message.<\/p>\n<div style=\"background: #f6f8fb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px 16px; margin: 0 0 20px; font-size: 15px; line-height: 1.8;\">\n<div style=\"display: flex; gap: 8px; padding: 4px 0;\"><span style=\"min-width: 120px; color: #6b7280;\">Required permissions<\/span><strong style=\"color: #111827;\">Manage Attendance Settings<\/strong> or <strong style=\"color: #111827;\">Edit General Settings<\/strong>, with the <a style=\"color: #1a56db;\" href=\"https:\/\/docs.daftra.com\/en\/tutorial\/enabling-the-employee-attendance-app\/\" target=\"_blank\" rel=\"noopener\"><strong style=\"color: #1a56db;\">Employee Attendance app enabled<\/strong><\/a>.<\/div>\n<div style=\"display: flex; gap: 8px; padding: 4px 0;\"><span style=\"min-width: 120px; color: #6b7280;\">Access path<\/span>From the main menu: <strong style=\"color: #111827;\">Attendance<\/strong> \u2192 <a style=\"color: #1a56db;\" href=\"https:\/\/go.daftra.com\/v2\/owner\/shifts\" target=\"_blank\" rel=\"noopener\"><strong style=\"color: #1a56db;\">Shifts Management<\/strong><\/a> \u2192 <strong style=\"color: #111827;\">New Shift<\/strong>.<\/div>\n<\/div>\n<div style=\"border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px 16px; margin: 0 0 20px;\">\n<p style=\"margin: 0 0 6px; font-weight: bold; color: #111827;\">Contents<\/p>\n<ol style=\"margin: 0; padding-left: 22px;\">\n<li style=\"margin-bottom: 4px;\"><a style=\"color: #1a56db;\" href=\"#types\"><strong style=\"color: #1a56db;\">The two shift types<\/strong><\/a><\/li>\n<li style=\"margin-bottom: 4px;\"><a style=\"color: #1a56db;\" href=\"#steps\"><strong style=\"color: #1a56db;\">Steps to add a shift<\/strong><\/a><\/li>\n<li style=\"margin-bottom: 4px;\"><a style=\"color: #1a56db;\" href=\"#rules\"><strong style=\"color: #1a56db;\">Attendance rules<\/strong><\/a><\/li>\n<li style=\"margin-bottom: 4px;\"><a style=\"color: #1a56db;\" href=\"#how\"><strong style=\"color: #1a56db;\">How attendance logs are evaluated<\/strong><\/a><\/li>\n<li style=\"margin-bottom: 4px;\"><a style=\"color: #1a56db;\" href=\"#night\"><strong style=\"color: #1a56db;\">Night shifts that end the next day<\/strong><\/a><\/li>\n<li style=\"margin-bottom: 4px;\"><a style=\"color: #1a56db;\" href=\"#out-of-shift\"><strong style=\"color: #1a56db;\">The &#8220;out of shift range&#8221; message<\/strong><\/a><\/li>\n<li style=\"margin-bottom: 4px;\"><a style=\"color: #1a56db;\" href=\"#recalc\"><strong style=\"color: #1a56db;\">Recalculate attendance after editing the shift<\/strong><\/a><\/li>\n<li style=\"margin-bottom: 4px;\"><a style=\"color: #1a56db;\" href=\"#assign\"><strong style=\"color: #1a56db;\">Assign the shift to employees<\/strong><\/a><\/li>\n<li style=\"margin-bottom: 4px;\"><a style=\"color: #1a56db;\" href=\"#edit\"><strong style=\"color: #1a56db;\">Edit and delete a shift<\/strong><\/a><\/li>\n<li style=\"margin-bottom: 4px;\"><a style=\"color: #1a56db;\" href=\"#errors\"><strong style=\"color: #1a56db;\">Error messages and solutions<\/strong><\/a><\/li>\n<li style=\"margin-bottom: 4px;\"><a style=\"color: #1a56db;\" href=\"#faq\"><strong style=\"color: #1a56db;\">FAQs<\/strong><\/a><\/li>\n<\/ol>\n<\/div>\n<h2 id=\"types\" style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">The two shift types<\/h2>\n<table style=\"width: 100%; border-collapse: collapse; margin: 0 0 18px;\">\n<tbody>\n<tr>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Type<\/th>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">When to use it<\/th>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">Standard<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">The same times for all the selected working days.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">Advanced<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Different times for each day, such as a shorter working day at the end of the week.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"steps\" style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">Steps to add a shift<\/h2>\n<ol style=\"margin: 0 0 16px; padding-left: 26px;\">\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">From the main menu, click <strong style=\"color: #111827;\">Attendance<\/strong>, then <a style=\"color: #1a56db;\" href=\"https:\/\/go.daftra.com\/v2\/owner\/shifts\" target=\"_blank\" rel=\"noopener\"><strong style=\"color: #1a56db;\">Shifts Management<\/strong><\/a>.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Click <strong style=\"color: #111827;\">New Shift<\/strong>.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Enter the <strong style=\"color: #111827;\">Name<\/strong> (required and unique), choose the <strong style=\"color: #111827;\">Type<\/strong>, and you can choose a <strong style=\"color: #111827;\">Color<\/strong> to distinguish the shift.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">In the <strong style=\"color: #111827;\">Week Days<\/strong> table, turn on <strong style=\"color: #111827;\">Work Day<\/strong> for each day the employee works. Days that aren&#8217;t turned on are considered weekend days. You can also turn on <strong style=\"color: #111827;\">Calculate Attendance on Off Days<\/strong> if you want attendance calculated even on days off.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Enter the <a style=\"color: #1a56db;\" href=\"#rules\">attendance rules<\/a>: once for the Standard type, and for each day in the Advanced type.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Check the <strong style=\"color: #111827;\">Shift Preview<\/strong>; it shows the <strong style=\"color: #111827;\">Sign-in window<\/strong> and the <strong style=\"color: #111827;\">Sign-out window<\/strong> on a timeline, and shows what falls on the <strong style=\"color: #111827;\">Next day<\/strong> (marked +1).<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Click <strong style=\"color: #111827;\">Save<\/strong>.<\/li>\n<\/ol>\n<h2 id=\"rules\" style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">Attendance rules<\/h2>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">All times use the 24-hour format.<\/p>\n<table style=\"width: 100%; border-collapse: collapse; margin: 0 0 18px;\">\n<tbody>\n<tr>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Field<\/th>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Meaning<\/th>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Default<\/th>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">On Duty Time<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">The work start time, and lateness is calculated from it.<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">09:00<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">Off Duty Time<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">The work end time, and early leaving is calculated from it. Expected working hours = off duty time \u2212 on duty time.<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">17:00<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">Start of Sign-In<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">The earliest time a sign-in log is accepted.<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">07:00<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">End of Sign-In<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">The latest time a sign-in log is accepted.<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">11:00<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">Start of Sign-Out<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">The earliest time a sign-out log is accepted.<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">15:00<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">End of Sign-Out<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">The latest time a sign-out log is accepted.<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">19:00<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">Lateness grace period<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">The minutes allowed after the on duty time without counting lateness.<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">15 minutes<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">Start late time<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">After On Duty Time + Lateness grace period<\/strong>: lateness is counted only after the grace period ends. <strong style=\"color: #111827;\">From On Duty Time<\/strong>: if the employee exceeds the grace period, the full lateness is counted from the on duty time.<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">After On Duty Time + Lateness grace period<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div style=\"display: flex; gap: 10px; background: #f6f8fb; border-left: 4px solid #1a56db; border-radius: 6px; padding: 14px 16px; margin: 0 0 18px;\">\n<p><span style=\"flex: 0 0 auto; font-size: 18px; line-height: 1.6;\">\ud83d\udec8<\/span><\/p>\n<p style=\"margin: 0; line-height: 1.9; font-size: 16px; color: #1f2430;\"><strong style=\"color: #111827;\">Note:<\/strong> When creating a new shift, changing <strong style=\"color: #111827;\">On Duty Time<\/strong> or <strong style=\"color: #111827;\">Off Duty Time<\/strong> fills in the sign-in and sign-out times automatically (two hours before and after each time if the shift is longer than 4 hours, and one hour if it&#8217;s shorter). Always review these times, especially in night shifts. There&#8217;s no grace period field for early leaving; early leaving is handled with leave permissions.<\/p>\n<\/div>\n<h2 id=\"how\" style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">How attendance logs are evaluated<\/h2>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">When calculating attendance, the system classifies each log based on the period it falls in:<\/p>\n<table style=\"width: 100%; border-collapse: collapse; margin: 0 0 18px;\">\n<tbody>\n<tr>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Log<\/th>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Treated as<\/th>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Between <strong style=\"color: #111827;\">Start of Sign-In<\/strong> and <strong style=\"color: #111827;\">End of Sign-In<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">The first log = <strong style=\"color: #111827;\">Sign In<\/strong>, and the ones after it = <strong style=\"color: #111827;\">Repeated Sign In<\/strong>.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Between <strong style=\"color: #111827;\">Start of Sign-Out<\/strong> and <strong style=\"color: #111827;\">End of Sign-Out<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">The last log = <strong style=\"color: #111827;\">Sign Out<\/strong>, and the ones before it = <strong style=\"color: #111827;\">Repeated Sign Out<\/strong>.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Outside both periods<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">An <strong style=\"color: #111827;\">invalid<\/strong> log that isn&#8217;t included in the calculation. See <a style=\"color: #1a56db;\" href=\"#out-of-shift\">The &#8220;out of shift range&#8221; message<\/a>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">The day status: valid sign-in and sign-out logs = present; sign-in only = <strong style=\"color: #111827;\">Sign In Only<\/strong>; sign-out only = <strong style=\"color: #111827;\">Sign Out Only<\/strong>; no valid logs = <strong style=\"color: #111827;\">Absent<\/strong> (or <strong style=\"color: #111827;\">Day Off<\/strong> if it&#8217;s a weekend day).<\/p>\n<h2 id=\"night\" style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">Night shifts that end the next day<\/h2>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">The system supports shifts that start on one day and end on the next day, and you don&#8217;t need to edit any dates manually. If the <strong style=\"color: #111827;\">Off Duty Time<\/strong> is earlier than the <strong style=\"color: #111827;\">On Duty Time<\/strong>, the system considers it on the next day, and the same goes for the sign-out period if its times are earlier than <strong style=\"color: #111827;\">End of Sign-In<\/strong>.<\/p>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Example: a shift from 18:00 in the evening to 09:00 the next morning:<\/p>\n<table style=\"width: 100%; border-collapse: collapse; margin: 0 0 18px;\">\n<tbody>\n<tr>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Field<\/th>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Value<\/th>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Day<\/th>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">Start of Sign-In<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">16:00<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Shift day<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">On Duty Time<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">18:00<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Shift day<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">End of Sign-In<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">22:00<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Shift day<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">Start of Sign-Out<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">06:00<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Next day<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">Off Duty Time<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">09:00<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Next day<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">End of Sign-Out<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">11:00<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Next day<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">This way, the sign-in log is accepted from 16:00 to 22:00, and the sign-out log from 06:00 to 11:00 the next morning, and the attendance day is recorded on the sign-in date.<\/p>\n<div style=\"display: flex; gap: 10px; background: #fff8eb; border-left: 4px solid #d97706; border-radius: 6px; padding: 14px 16px; margin: 0 0 18px;\">\n<p><span style=\"flex: 0 0 auto; font-size: 18px; line-height: 1.6;\">\u26a0<\/span><\/p>\n<p style=\"margin: 0; line-height: 1.9; font-size: 16px; color: #1f2430;\"><strong style=\"color: #111827;\">Warning:<\/strong> The automatic fill when creating a night shift may set unsuitable log times (such as sign-out from 08:00 to 10:00), so a sign-out log at 07:00 is rejected. Set the four times manually as in the example. The system doesn&#8217;t prevent you from saving overlapping or out-of-order times; check the preview before saving.<\/p>\n<\/div>\n<div style=\"display: flex; gap: 10px; background: #f6f8fb; border-left: 4px solid #1a56db; border-radius: 6px; padding: 14px 16px; margin: 0 0 18px;\">\n<p><span style=\"flex: 0 0 auto; font-size: 18px; line-height: 1.6;\">\ud83d\udec8<\/span><\/p>\n<p style=\"margin: 0; line-height: 1.9; font-size: 16px; color: #1f2430;\"><strong style=\"color: #111827;\">Note:<\/strong> A night shift follows the sign-in day. For example, Thursday night into Friday follows <strong style=\"color: #111827;\">Thursday<\/strong>&#8216;s rules, so Thursday must be a <strong style=\"color: #111827;\">Work Day<\/strong>, even if Friday is a day off.<\/p>\n<\/div>\n<h2 id=\"out-of-shift\" style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">The &#8220;out of shift range&#8221; message<\/h2>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">After attendance is calculated, any log that doesn&#8217;t fall within the sign-in period or the sign-out period of any day becomes <strong style=\"color: #111827;\">invalid<\/strong>, and its reason appears. The reasons, in order:<\/p>\n<table style=\"width: 100%; border-collapse: collapse; margin: 0 0 18px;\">\n<tbody>\n<tr>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Reason<\/th>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">When<\/th>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">No shift assigned<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">The employee doesn&#8217;t have a shift.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">Weekend<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">The log&#8217;s day isn&#8217;t a working day in their shift.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">Leave<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">The employee is on approved leave.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">Out of shift range<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Other than the above: the log is outside both the sign-in and sign-out periods.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">In a night shift, this usually appears for the morning sign-out log, because the sign-out period doesn&#8217;t include the log time, so the day becomes <strong style=\"color: #111827;\">Sign In Only<\/strong>.<\/p>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\"><strong style=\"color: #111827;\">The fix:<\/strong><\/p>\n<ol style=\"margin: 0 0 16px; padding-left: 26px;\">\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Open the shift from <a style=\"color: #1a56db;\" href=\"https:\/\/go.daftra.com\/v2\/owner\/shifts\" target=\"_blank\" rel=\"noopener\"><strong style=\"color: #1a56db;\">Shifts Management<\/strong><\/a>, and click <strong style=\"color: #111827;\">Edit<\/strong>.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Widen the log period that doesn&#8217;t include the logs, such as <strong style=\"color: #111827;\">Start of Sign-Out<\/strong> 06:00 and <strong style=\"color: #111827;\">End of Sign-Out<\/strong> 11:00 in the night shift.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Click <strong style=\"color: #111827;\">Save<\/strong>.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Recalculate attendance for the previous days as in the next section, so the logs are evaluated again.<\/li>\n<\/ol>\n<h2 id=\"recalc\" style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">Recalculate attendance after editing the shift<\/h2>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Editing the shift doesn&#8217;t recalculate previous days automatically. To apply it to a full period (such as a month) at once:<\/p>\n<ol style=\"margin: 0 0 16px; padding-left: 26px;\">\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Open <a style=\"color: #1a56db;\" href=\"https:\/\/go.daftra.com\/v2\/owner\/attendance_days\" target=\"_blank\" rel=\"noopener\"><strong style=\"color: #1a56db;\">Attendance Days<\/strong><\/a> and click <strong style=\"color: #111827;\">Calculate Attendance<\/strong>.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Set the period <strong style=\"color: #111827;\">From<\/strong> and <strong style=\"color: #111827;\">To<\/strong>, and the employees. In night shifts, make the <strong style=\"color: #111827;\">To<\/strong> date one day after the last night, so the last night&#8217;s sign-out log is read.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">If you edited days manually before and want them recalculated too, select <strong style=\"color: #111827;\">Overwrite Manual Attendance Day<\/strong>; otherwise the manual days stay as they are.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Click <strong style=\"color: #111827;\">Calculate<\/strong>; a message appears confirming that the days in the period were calculated successfully.<\/li>\n<\/ol>\n<ul style=\"margin: 0 0 16px; padding-left: 26px;\">\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">The calculation uses the employee&#8217;s current shift, not the shift they had on the previous days.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Days included in approved attendance sheets aren&#8217;t recalculated.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">To recalculate a single day, open it and click <strong style=\"color: #111827;\">Recalculate<\/strong>; if it was edited manually, you&#8217;re asked to confirm deleting the edits.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">The <strong style=\"color: #111827;\">To<\/strong> date must be after <strong style=\"color: #111827;\">From<\/strong> (otherwise the message <strong style=\"color: #111827;\">To date must be greater than from date<\/strong> appears), and must not be more than 3 months from today.<\/li>\n<\/ul>\n<h2 id=\"assign\" style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">Assign the shift to employees<\/h2>\n<table style=\"width: 100%; border-collapse: collapse; margin: 0 0 18px;\">\n<tbody>\n<tr>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Method<\/th>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Details<\/th>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">Base Shift<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">From the employee&#8217;s profile \u2192 Edit \u2192 <strong style=\"color: #111827;\">Base Shift<\/strong>.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">Secondary base shift<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">After enabling <strong style=\"color: #111827;\">Employee Secondary Base Shifts<\/strong> from <strong style=\"color: #111827;\">Attendance<\/strong> \u2192 <strong style=\"color: #111827;\">Settings<\/strong> \u2192 <strong style=\"color: #111827;\">Attendance Configurations<\/strong>, select the option to allow the secondary shift in the employee&#8217;s profile.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">Bulk assignment<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">From the shift page, click <strong style=\"color: #111827;\">Assign To Employees<\/strong> and choose the employees.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">Temporary Shifts<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">To change the shift of employees, a branch, or a department for a specific period; it replaces the primary shift during this period.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"edit\" style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">Edit and delete a shift<\/h2>\n<ul style=\"margin: 0 0 16px; padding-left: 26px;\">\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">You can edit the shift at any time, even if it&#8217;s assigned to employees or has attendance days. The edit applies on the next calculation only.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">You can&#8217;t delete a shift assigned to an active employee (as a base, secondary, or booking shift), linked to temporary shifts, or set as the default bookings shift.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Having previous attendance days doesn&#8217;t prevent deletion.<\/li>\n<\/ul>\n<h2 id=\"errors\" style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">Error messages and solutions<\/h2>\n<table style=\"width: 100%; border-collapse: collapse; margin: 0 0 18px;\">\n<tbody>\n<tr>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Message<\/th>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Cause<\/th>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Solution<\/th>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">This Name is Already Exists<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">The shift name is already used.<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Choose another name.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">The shift must contain at least one day<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">You didn&#8217;t select any working day.<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Select at least one working day.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">Please enter a valid time<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">An empty time or a wrong format.<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Enter the time in the 24-hour format, such as 18:00.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">You can&#8217;t enter a lateness time later than the end of the attendance time<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">On duty time + the grace period exceeds <strong style=\"color: #111827;\">End of Sign-In<\/strong>.<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Reduce the grace period or make the end of sign-in later.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">You can&#8217;t delete this shift because it&#8217;s assigned<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">The shift is assigned to an active employee.<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Change these employees&#8217; shift first.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">You can&#8217;t delete this shift because it&#8217;s linked to temporary shifts<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">The shift is used in a temporary shift.<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Delete the linked temporary shifts first.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\"><strong style=\"color: #111827;\">Out of shift range<\/strong> (on the log)<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">The log is outside the sign-in and sign-out periods.<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Widen the right period, then recalculate attendance.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"faq\" style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">FAQs<\/h2>\n<h3 style=\"font-size: 18px; font-weight: bold; color: #111827; margin: 24px 0 10px;\">The employee is on a shift from 18:00 to 09:00, and the morning sign-out log shows &#8220;out of shift range&#8221;. Why?<\/h3>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Because the log time doesn&#8217;t fall between <strong style=\"color: #111827;\">Start of Sign-Out<\/strong> and <strong style=\"color: #111827;\">End of Sign-Out<\/strong>. Set up the shift as in the <a style=\"color: #1a56db;\" href=\"#night\">night shift example<\/a> (for example, sign-out from 06:00 to 11:00), then recalculate attendance for the month at once from <strong style=\"color: #111827;\">Calculate Attendance<\/strong>; there&#8217;s no need to edit each day manually.<\/p>\n<h3 style=\"font-size: 18px; font-weight: bold; color: #111827; margin: 24px 0 10px;\">Does the system support shifts that end the next day?<\/h3>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Yes; enter an off duty time earlier than the on duty time (such as 18:00 to 09:00), and the system considers it on the next day, and records the day on the sign-in date.<\/p>\n<h3 style=\"font-size: 18px; font-weight: bold; color: #111827; margin: 24px 0 10px;\">I edited the shift, but the previous days didn&#8217;t change. Why?<\/h3>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Because editing the shift doesn&#8217;t recalculate automatically. Run <strong style=\"color: #111827;\">Calculate Attendance<\/strong> for the period, and select <strong style=\"color: #111827;\">Overwrite Manual Attendance Day<\/strong> if the days were edited manually.<\/p>\n<h3 style=\"font-size: 18px; font-weight: bold; color: #111827; margin: 24px 0 10px;\">What&#8217;s the difference between the on duty time and the beginning of sign-in?<\/h3>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">The on duty time is the work start time, and lateness is calculated from it. The beginning of sign-in is the earliest time a log is accepted, and it&#8217;s usually before the on duty time.<\/p>\n<\/div>\n","protected":false},"author":12,"featured_media":0,"template":"","categories":[8010],"tags":[29180,29182,29189,29186,29184,29183,29185,29179,29181,29188],"class_list":["post-5330","tutorial","type-tutorial","status-publish","hentry","category-shifts-management","tag-add-a-shift","tag-advanced-shift","tag-base-shift","tag-calculate-attendance","tag-lateness-grace-period","tag-night-shift","tag-out-of-shift-range","tag-shifts-management","tag-standard-shift","tag-temporary-shifts"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Add an Employee Shift - Daftra Knowledge Base<\/title>\n<meta name=\"description\" content=\"Learn how to add a shift, set its attendance rules, set up night shifts that end the next day, fix the &quot;out of shift range&quot; message, and assign shifts to employees.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/docs.daftra.com\/en\/tutorial\/adding-a-shift\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Add an Employee Shift - Daftra Knowledge Base\" \/>\n<meta property=\"og:description\" content=\"Learn how to add a shift, set its attendance rules, set up night shifts that end the next day, fix the &quot;out of shift range&quot; message, and assign shifts to employees.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.daftra.com\/en\/tutorial\/adding-a-shift\/\" \/>\n<meta property=\"og:site_name\" content=\"Daftra Knowledge Base\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-08T10:18:45+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/docs.daftra.com\/en\/#organization\",\"name\":\"Daftra\",\"url\":\"https:\/\/docs.daftra.com\/en\/\",\"sameAs\":[],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/docs.daftra.com\/en\/#logo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/10\/daftra-ar.svg\",\"contentUrl\":\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/10\/daftra-ar.svg\",\"caption\":\"Daftra\"},\"image\":{\"@id\":\"https:\/\/docs.daftra.com\/en\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/docs.daftra.com\/en\/#website\",\"url\":\"https:\/\/docs.daftra.com\/en\/\",\"name\":\"Daftra Knowledge Base\",\"description\":\"Daftra\",\"publisher\":{\"@id\":\"https:\/\/docs.daftra.com\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/docs.daftra.com\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/docs.daftra.com\/en\/tutorial\/adding-a-shift\/#webpage\",\"url\":\"https:\/\/docs.daftra.com\/en\/tutorial\/adding-a-shift\/\",\"name\":\"Add an Employee Shift - Daftra Knowledge Base\",\"isPartOf\":{\"@id\":\"https:\/\/docs.daftra.com\/en\/#website\"},\"datePublished\":\"2021-01-19T11:23:55+00:00\",\"dateModified\":\"2026-11-08T10:18:45+00:00\",\"description\":\"Learn how to add a shift, set its attendance rules, set up night shifts that end the next day, fix the \\\"out of shift range\\\" message, and assign shifts to employees.\",\"breadcrumb\":{\"@id\":\"https:\/\/docs.daftra.com\/en\/tutorial\/adding-a-shift\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/docs.daftra.com\/en\/tutorial\/adding-a-shift\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/docs.daftra.com\/en\/tutorial\/adding-a-shift\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/docs.daftra.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add an Employee Shift\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Add an Employee Shift - Daftra Knowledge Base","description":"Learn how to add a shift, set its attendance rules, set up night shifts that end the next day, fix the \"out of shift range\" message, and assign shifts to employees.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/docs.daftra.com\/en\/tutorial\/adding-a-shift\/","og_locale":"en_US","og_type":"article","og_title":"Add an Employee Shift - Daftra Knowledge Base","og_description":"Learn how to add a shift, set its attendance rules, set up night shifts that end the next day, fix the \"out of shift range\" message, and assign shifts to employees.","og_url":"https:\/\/docs.daftra.com\/en\/tutorial\/adding-a-shift\/","og_site_name":"Daftra Knowledge Base","article_modified_time":"2026-11-08T10:18:45+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/docs.daftra.com\/en\/#organization","name":"Daftra","url":"https:\/\/docs.daftra.com\/en\/","sameAs":[],"logo":{"@type":"ImageObject","@id":"https:\/\/docs.daftra.com\/en\/#logo","inLanguage":"en-US","url":"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/10\/daftra-ar.svg","contentUrl":"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/10\/daftra-ar.svg","caption":"Daftra"},"image":{"@id":"https:\/\/docs.daftra.com\/en\/#logo"}},{"@type":"WebSite","@id":"https:\/\/docs.daftra.com\/en\/#website","url":"https:\/\/docs.daftra.com\/en\/","name":"Daftra Knowledge Base","description":"Daftra","publisher":{"@id":"https:\/\/docs.daftra.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/docs.daftra.com\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/docs.daftra.com\/en\/tutorial\/adding-a-shift\/#webpage","url":"https:\/\/docs.daftra.com\/en\/tutorial\/adding-a-shift\/","name":"Add an Employee Shift - Daftra Knowledge Base","isPartOf":{"@id":"https:\/\/docs.daftra.com\/en\/#website"},"datePublished":"2021-01-19T11:23:55+00:00","dateModified":"2026-11-08T10:18:45+00:00","description":"Learn how to add a shift, set its attendance rules, set up night shifts that end the next day, fix the \"out of shift range\" message, and assign shifts to employees.","breadcrumb":{"@id":"https:\/\/docs.daftra.com\/en\/tutorial\/adding-a-shift\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.daftra.com\/en\/tutorial\/adding-a-shift\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/docs.daftra.com\/en\/tutorial\/adding-a-shift\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.daftra.com\/en\/"},{"@type":"ListItem","position":2,"name":"Add an Employee Shift"}]}]}},"_links":{"self":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tutorial\/5330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tutorial"}],"about":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/types\/tutorial"}],"author":[{"embeddable":true,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/users\/12"}],"version-history":[{"count":10,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tutorial\/5330\/revisions"}],"predecessor-version":[{"id":157314,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tutorial\/5330\/revisions\/157314"}],"wp:attachment":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/media?parent=5330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/categories?post=5330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tags?post=5330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}