Midnight is a calendar event, not a pay event. If your attendance system splits a 22:00–06:00 shift into two calendar days, the hours are still worked, but the daily record is wrong — and a wrong daily record produces a wrong weekly total, which is what overtime is actually computed on. This guide covers how the workday is defined in the federal recordkeeping rule, the three ways systems handle the midnight boundary, and how to configure a night shift so the punch data matches payroll.

Why midnight breaks naive time systems
Most attendance terminals store a punch as a timestamp, and most time software groups punches by calendar date. A shift that starts at 22:00 on Monday and ends at 06:00 on Tuesday therefore produces a clock-in with no matching clock-out on Monday, and a clock-out with no matching clock-in on Tuesday. Depending on how the software resolves the pair, you get one of three bad outcomes: the shift is dropped from the daily total, the second half is booked as a brand-new shift on the next day, or the system writes a synthetic 00:00 punch to close the day.
The third option is not inherently wrong — an artificial midnight split is a legitimate way to allocate hours across two workdays — but it becomes a problem when it is implemented as a truncation. The pattern shows up in worker forums repeatedly: a night-shift employee discovers the system clocks them out at 23:59 and back in at 00:00, and the pay for the second half of the shift quietly disappears. That is not a rounding difference. It is worked time being deleted.
The knock-on effects are predictable. Daily hours are wrong, so daily overtime rules (where they exist) fire incorrectly; weekly totals are wrong, so the federal 40-hour threshold is computed against bad arithmetic; and the exception report that HR reviews on Monday morning is full of “missing punch out” entries that are really configuration artefacts.
What the federal recordkeeping rule actually says
Two provisions do most of the work, and neither of them mentions the calendar day.
29 CFR 516.2(a)(7) requires an employer to record hours worked each workday and total hours worked each workweek, and it defines the terms for that purpose: “a ‘workday’ is any fixed period of 24 consecutive hours and a ‘workweek’ is any fixed and regularly recurring period of 7 consecutive workdays.” The same section, at 29 CFR 516.2(a)(5), requires the record to show the time of day and day of week on which the employee’s workweek begins.
29 CFR 778.105 defines the workweek for overtime computation: “An employee’s workweek is a fixed and regularly recurring period of 168 hours—seven consecutive 24-hour periods. It need not coincide with the calendar week but may begin on any day and at any hour of the day.” The same section adds that once the beginning time of an employee’s workweek is established, it remains fixed regardless of the schedule worked, and that it may be changed only if the change is intended to be permanent and is not designed to evade the overtime requirements of the Act.
Three practical consequences follow directly:
- You may choose the workday boundary. A plant that runs 06:00–14:00, 14:00–22:00 and 22:00–06:00 can set its workday to run 06:00 to 06:00. Nothing in the rule requires the boundary to fall at midnight.
- The boundary must be fixed and written down. “Any fixed period” means you cannot move the cutoff per shift, per employee, or per pay period to make overtime disappear.
- The workweek boundary is a separate decision that drives overtime. The federal overtime threshold is expressed per workweek, not per workday, so a night shift that crosses midnight does not by itself create overtime. State law and collective agreements sometimes do impose daily overtime or spread-of-hours premiums — check the rules that apply to your jurisdiction before you rely on the federal framing alone.
Three ways systems handle the midnight boundary
| Approach | How it works | What it breaks | Best when |
|---|---|---|---|
| Calendar-date grouping (most defaults) | Each punch is bucketed by its calendar date; a shift spanning two dates becomes two partial records. | Orphaned punches, missing daily hours, false “missing punch out” exceptions, understated weekly totals. | Single-shift daytime sites with no overnight work at all. |
| Shift-based grouping | A shift definition (start time, end time, grace windows) owns the punches; the shift ID determines which workday the hours belong to, even if it ends the next morning. | Requires a maintained shift calendar; an employee who works outside their assigned shift still needs a fallback rule. | Rotating or multi-shift plants with a roster — the most accurate option where coverage is planned. |
| Fixed workday cutoff | A configurable hour (for example 06:00) closes the workday; punches before the cutoff belong to the previous workday. | A shift that legitimately runs past the cutoff is split unless you add tolerance or place the cutoff in a quiet window. | Sites that want a rule payroll can explain in one sentence and that matches the 24-hour workday definition. |
A fourth pattern — writing a synthetic punch at 00:00 and reopening the shift — is compatible with either of the last two approaches, provided the synthetic punch only allocates hours and never truncates them. The test is simple: total paid time across the two workdays must equal clock-out minus clock-in, minus any properly recorded unpaid break.
A worked example: choosing the cutoff
Take a plant with three shifts and a 15-minute grace window on arrival. The night shift is 22:00–06:00. An employee clocks in at 21:52 and out at 06:04 — 8 hours 12 minutes worked.
| Configuration | Day 1 record | Day 2 record | Total | Verdict |
|---|---|---|---|---|
| Calendar-date grouping | 2 h 08 m | 6 h 04 m | 8 h 12 m | Total is right, daily records are meaningless, and both days throw exceptions. |
| Cutoff at 00:00 (midnight) | 2 h 08 m | 6 h 04 m | 8 h 12 m | Same split; still two daily records for one shift. |
| Cutoff at 06:00, no tolerance | 8 h 08 m (to the workday starting 06:00 previous day) | 0 h 04 m | 8 h 12 m | Total right, daily record nearly right, 4-minute tail still crosses. |
| Cutoff at 06:30 with shift-based grouping | 8 h 12 m on the night shift’s workday | 0 | 8 h 12 m | One shift, one daily record, no exception. |
The lesson is not “pick 06:30”. It is that the cutoff should sit where punch volume is lowest and where normal overrun still lands inside the intended workday. A cutoff placed exactly on a shift boundary guarantees that the grace window and every late departure straddle it. A cutoff placed 20–30 minutes after the last scheduled start (or after the last scheduled end) absorbs the ordinary variance without moving the boundary for anyone.
Whatever you choose, write the boundary into the same document that records the workweek start day and hour, because 29 CFR 516.2(a)(5) expects that time to be identifiable on the record.
Where rounding fits — and where it does not
29 CFR 785.48(b) accepts the long-standing practice of recording starting and stopping times to the nearest five minutes, or to the nearest one-tenth or quarter of an hour, “provided that it is used in such a manner that it will not result, over a period of time, in failure to compensate the employees properly for all the time they have actually worked.” 29 CFR 785.48(a) adds that time clocks are not required, that early or late punching may be disregarded where no work is performed, and that major discrepancies between clock records and actual hours worked should be discouraged because they raise doubt about the accuracy of the record.
That is the line between a rounding policy and a midnight auto-clock-out. Rounding moves a punch by a few minutes in a way that averages out. Auto-closing a shift at midnight removes hours that were worked and cannot average back. If an audit asks you to reconcile terminal punches to paid hours, the first will survive and the second will not.
The full treatment of rounding windows, the seven-minute rule and how to test whether a rounding policy is neutral over a quarter is covered in Time Clock Rounding Rules. Record retention and what has to sit on the payroll record is covered in FLSA Recordkeeping Requirements.
Night-shift conditions that break the terminal itself
Once the arithmetic is right, the remaining failures are physical. Night shifts concentrate exactly the conditions that make biometric capture unreliable:
- Lighting. Face capture needs even, controlled illumination. Yard floodlights behind a door wash out the camera; a pitch-dark gate gives it nothing to work with. Terminals with active near-infrared illumination handle both, but the camera should be commissioned at night, not at 14:00.
- Gloves and PPE. A night line that keeps gloves on at the clock-in point should not be served by a fingerprint-only unit. Give each worker a fallback mode — face, card or PIN — and enrol it before go-live, not after the first failed scan.
- Gate and yard clocking. Outdoor stations need an enclosure rating and a shade that matches the actual sun and floodlight angle, plus a UPS so a trip does not drop the station mid-shift.
- Maintenance windows. Overnight is when IT does backups and switch work. Terminals must buffer punches locally and sync when the link returns, so a network outage never stops clocking.
- Handover peaks. Two hundred people in five minutes is a placement problem more than a speed problem; a second door or a second unit on the same door does more than a faster matcher.
The deployment detail behind those points — enrolment rhythm, network plan and the per-door hardware choice — is set out in Factory Floor Attendance Systems. For exposed gate positions see the AT-O8 outdoor attendance station, and for lines where gloves stay on, the multimodal AT-F3 fingerprint terminal keeps a card and PIN path available.

Pre-go-live checklist for cross-midnight shifts
- Write down the workday boundary (hour) and the workweek start (day of week and hour) in one place.
- Confirm the software treats a shift that ends after midnight as one shift, not two.
- Set grace windows on arrival and departure, and check they do not straddle the workday cutoff.
- Run four test cases: on time, three hours late, early out, and no out-punch. All four must land on the intended workday.
- Reconcile one full pay period: terminal totals against payroll totals, per workweek, per employee on the night shift.
- Check rounding direction across four weeks — the net must not systematically favour the employer.
- Retain the raw punch log, not only the adjusted timesheet, so a discrepancy can be reconstructed later.
- Train night supervisors on manual exception entry, and on what the cutoff does and does not do.
The export side of that reconciliation — how terminal punches become a timesheet payroll will accept — is described in From Time & Attendance Data to Payroll.
Frequently asked questions
Does working past midnight trigger overtime?
Not on its own. The federal overtime threshold is computed on the workweek — 29 CFR 778.105 defines that workweek as a fixed 168-hour period that need not match the calendar week — so hours after midnight are just hours in the same workweek. Some states and some collective agreements do add daily overtime or night premiums; check those separately.
Can the system automatically clock people out at midnight?
Not safely. An automatic midnight close that discards the rest of a shift is a major discrepancy between clock records and hours actually worked, which 29 CFR 785.48(a) says should be discouraged because it raises doubt about the accuracy of the record. A midnight split that only allocates hours between two workdays, keeping the total intact, is fine.
Can we change the workday boundary after go-live?
Yes, but treat it like the workweek change described in 29 CFR 778.105: the change has to be intended as permanent, and it must not be designed to evade overtime requirements. Changing a boundary in the middle of a pay period to reduce a weekly total is the exact pattern that draws scrutiny.
What if a night worker forgets to punch out?
The exception has to be corrected by a supervisor against a known source, and the correction should be logged with who made it and when. Do not let the software silently substitute a scheduled end time — that turns a missing punch into an invented one, and it removes the signal that tells you the door or the terminal needs attention.
This article is general information about federal recordkeeping and overtime rules, not legal advice. State and local rules, and any applicable collective agreement, can impose additional daily overtime, meal-break or night-premium obligations. Confirm the requirements that apply to your jurisdiction with counsel or your payroll advisor.
Related guides
Tell us what you need to deploy
Send us the door count, headcount, read distance or frequency band for your market and we will reply with a written quotation and a wiring recommendation.
Request a quoteWhatsApp usOr email attendix@fengyinling.cn · call +86 15768453250