---
description: Sixteen worked examples of what the Display Time editor, JSON overrides, Reset to Render, Collapse Gaps, Room Offset, API imports and Excel re-imports do to a scheduled item's times.
---

# Display time examples

The examples below show, case by case, what each editing action does to a scheduled item's
times. They assume the concepts on
[Display time, render time and room offset](display_time_ownership.md): the four times, and
the *following* or *fixed* state of each Display boundary of an API item.

Each example states what you enter, what is saved, what the sign prints, when the item shows, the
resulting state, and what a later API import may change. Unless stated otherwise the room has no
Room Offset and there is no JSON override.

## Following and fixed boundaries

### 1. An API item following the API Time

| | Start | End |
| --- | --- | --- |
| API Time | 10:00 | 11:00 |
| Saved Display Time | 10:00 (following) | 11:00 (following) |
| Sign prints / shows the item | 10:00 / 10:00 | 11:00 / 11:00 |

The API moves the session to 10:30–11:30. Both boundaries follow: the sign prints and shows
10:30–11:30.

### 2. Fixing only Display Start, then the API changes the End

You change Display Start to 09:45 in the Display Time editor. The End is untouched.

| | Start | End |
| --- | --- | --- |
| Saved Display Time | 09:45 (**fixed**) | 11:00 (following) |

The API then changes its End to 11:30. Display End follows and becomes 11:30. Display Start stays
at 09:45. The sign shows the item 09:45–11:30 and prints 10:00–11:30.

### 3. JSON time overrides never move Display Time

The API sends 10:00–11:00. Display Start follows at 10:00.

1. You set `time_start` to `09:45` in the JSON override editor. The sign **prints** 09:45, but
   Display Start stays **10:00, following**. Nothing else is saved.
2. The next import brings no change. Display Start stays at 10:00.
3. The API moves its Start to 10:30. Display Start follows to **10:30**, while the sign still
   prints 09:45 because your override remains. The import reports that the API change is masked by
   your override.
4. You clear the override. The sign now prints the API's 10:30. Display Start stays 10:30,
   following.

With a **fixed** Display Start the JSON editor behaves the same way: if Display Start was fixed at
09:45 and you set `time_start` to `09:30`, the sign prints 09:30 and Display Start stays 09:45,
fixed. Only the API Time can move a following boundary, and only Reset releases a fixed one.

### 4. Typing the API Time versus pressing Reset

The API Start is 10:00 and Display Start is fixed at 09:45.

- **You type 10:00** in the Display Time editor and save. Display Start is 10:00 and **still
  fixed**. The next time the API moves the session, Display Start stays at 10:00.
- **You press Reset to Render.** Display Start is 10:00 and **following**. The next API change
  moves it.

### 5. An update that would invert the window

Display Start is fixed at 09:45, and Display End follows at 11:00. The API moves the session to
08:30–09:30.

Following would give 09:45–09:30, which is impossible. So:

1. The API data is saved as 08:30–09:30, and the sign prints it.
2. Display End stays at 11:00, and the sign still shows the item 09:45–11:00.
3. Display Start stays fixed; Display End stays following.
4. The import reports **Display End could not follow API End**, and the item editor shows the same
   warning.

A JSON override does not change this: setting `time_end` to 12:00 in the JSON editor changes what
the sign prints, but Display End is still blocked by the API's 09:30.

The problem is over as soon as a valid window is possible again:

- the API later sends, say, 08:30–10:30, and Display End follows to 10:30;
- you move Display Start to 08:00: the warning disappears from the editor at once, and the next
  import (even one with no API changes) moves Display End to 09:30;
- you press Reset: Display Time becomes 08:30–09:30 and both boundaries follow.

The import alert closes on the next import after that.

## Room Offset

### 6. Before and After offsets following API changes

API and Display Time are 10:00–11:00, both following.

| Room Offset | Sign shows | After the API moves the session to 10:30–11:30 |
| --- | --- | --- |
| 15 min **Before** | 09:45–10:45 | saved 10:30–11:30, sign 10:15–11:15 |
| 10 min **After** | 10:10–11:10 | saved 10:30–11:30, sign 10:40–11:40 |

The offset does not make anything fixed.

### 7. A fixed Display Start in a room with an offset

With a 15-minute Before offset, you fix Display Start at 09:45. The sign starts showing the item
at **09:30**: the offset still applies to the fixed value. The Display Time editor shows both
the saved value and the value "with room offset", so you do not shift an item twice by accident.

### 8. Reset while a JSON override and Room Offset stay

A room has a 15-minute Before offset. The API sends 10:00–11:00, your JSON override makes the sign
print 09:45–11:00, and Display Time is fixed at 09:00–10:30.

Reset makes saved Display Time **10:00–11:00**, the API Time, with both boundaries following. The
sign shows the item **09:45–10:45**, because Reset keeps the room's offset, and still prints
09:45–11:00, because Reset keeps your override. Editing or removing the override afterwards does
not move Display Time.

## Collapse Gaps

### 9. Collapse Gaps, once, with and without an offset

Item A is 10:00–10:50 and item B is 11:00–12:00. Collapse Gaps moves B's Display Start to 10:50
and makes it fixed. B's End and A are unchanged.

With a 15-minute Before offset the sign showed 09:45–10:35 and 10:45–11:45. After collapsing it
shows 09:45–10:35 and **10:35**–11:45. The offset is the same for the whole room, so it does not
change which gaps close.

Collapse Gaps does not stay on. When later imports change the times, the gap is not closed again.

### 10. Collapse Gaps replacing a manual Display Start

B's Display Start was fixed by hand at 11:05. Collapse Gaps still moves it to 10:50, and it stays
fixed. Collapse Gaps is a later explicit action, and it replaces gaps in the scope you chose. The
confirmation warns that manually adjusted Starts are overwritten. Contrast this with a sync: an
import never moves a fixed boundary, because it is not you acting on this room — it only reports
the gap it finds (next example).

### 11. A later import reopens the gap

After example 9, B's Display Start is fixed at 10:50 and A's End follows. The API moves A to
10:00–10:40. A's Display End follows to 10:40; B stays at 10:50. The import reports *fixed
Display Start 10:50 met the end of the items before it; after this import they end at 10:40,
leaving a gap of 10 minutes*. Nothing is collapsed automatically. You decide whether to edit B,
collapse again, or keep the gap. A JSON override edit never causes this warning, because it does
not move Display Time.

The check looks at the latest end of **all** earlier items that day. Suppose an item runs
10:00–10:30 inside a longer item that runs 09:00–12:00. The gap before the next item is measured
from 12:00, not from 10:30.

## Moving rooms and crossing midnight

### 12. An item moves to a room with a different offset

Saved Display Start is 10:00. In Room A (15 minutes Before) the sign showed it at 09:45. The API
now lists the session in Room B, which has no offset. The item keeps its saved 10:00 and its
boundary states, so Room B's sign shows it at **10:00**. Onlit does not rewrite the item to
keep Room A's 09:45.

### 13. An offset crossing midnight

Saved Display Start is 12 August at 00:05, and the room has a 15-minute Before offset. The sign
shows the item from **11 August 23:50**. Date-based actions (Collapse Gaps, Reset and the bulk
boundary actions for a selected date) file the item under its saved date, **12 August**. The room
viewer shows it at the shifted time the sign uses, so its list puts it under **11 August**; that
is why the room viewer's Collapse Gaps button is unavailable while the room has
a Room Offset (see [Collapse Gaps](collapse_gaps.md)).

## Custom items and Excel

### 14. Editing a custom item's JSON

A custom item shows 10:00–11:00. You change `time_start` / `time_end` in its JSON to
09:00–09:30. The sign prints 09:00–09:30, but the item is still **shown** 10:00–11:00. Use the
Display Time editor or Reset to Render to change when it shows.

### 15. The Update JSON Time Values shortcut (custom items)

A custom item shows 10:00–11:00. In the Display Time editor you change only the Start to 09:45 and
turn on **Update JSON Time Values**. The editor shows the two values it will copy: `time_start`
09:45 and `time_end` 11:00. After saving, both Display Time and the JSON times are 09:45–11:00. The
End is copied too, even though you did not change it, so check it first if the JSON had a different
End. The copy uses the times in the editor, before Room Offset, and is one-time: a later JSON edit
does not move Display Time again.

API items do not offer this shortcut. For them, the Display Time editor and the JSON override
editor are separate on purpose: change Display Time in the one, and what the sign prints in the
other.

### 16. Excel reimport in a MANUAL event

1. An Excel import sets a room's `ROOM OFFSET` to 900 (15 minutes Before).
2. You change the room's offset to 10 minutes Before in the UI.
3. A later Excel import supplies `ROOM OFFSET` 900 again.

The room is back to 15 minutes Before. Excel import is a bulk edit of the same event, so the
values you supply replace the current ones, just as the same edits by hand would. This is not an
external-source conflict.

## Related

- [Display time, render time and room offset](display_time_ownership.md)
- [Editing scheduled item JSON](editing_item_json.md)
- [Collapse gaps](collapse_gaps.md)
- [Bulk room schedule times](bulk_room_schedule_times.md)
- [Excel import](excel_import.md)
