'Current day' formatter is empty when viewed outside of the open hours

Created on 15 February 2024, 10 months ago
Updated 1 March 2024, 10 months ago

Problem/Motivation

The current day formatter is returning nothing if times are configured for the current day, but the hours are being viewed outside of the open hours configured for that day.

Steps to reproduce

1. Create a display that uses the 'current day' formatter.
2. Configure a node with hours set for the current day, but not covering the current time. (Ex, if it's Thursday at 3pm, configure the hours field to be open on Thursdays from 4pm-5pm).
3. View the display - no values are displayed for the current day formatter. If you change the hours field to cover the current time, then the hours will be displayed by the current day formatter.

Proposed resolution

The current day formatter should show all hours for the current day, regardless of the time that the user is viewing the display. It should also show any comments that are configured for days that don't have hours. For example, if 'Closed' is set as the comment for the current day, that should be displayed by the formatter.

🐛 Bug report
Status

Fixed

Version

1.15

Component

Code - formatter

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024