"Show next open day" only works if sunday is the first day of the week. The setting of the field formatter is not taken into account:

<?php
// Are we currently open? If not, when is the next time?
// Remember: empty days are not in $items; they are present in $days.
if ($day <= $today) {
  // Initialize to first day of (next) week, in case we're closed
  // the rest of the week.
  if ($today == 0) {
    // Not for sundays, since this is already first day of the week.
  }
  elseif ($next === NULL) {
    $next = $day;
  }
}
?>
CommentFileSizeAuthor
#2 next-open-day-setting-2924975-2.patch708 bytesluksak

Comments

Lukas von Blarer created an issue. See original summary.

luksak’s picture

Status: Active » Needs review
StatusFileSize
new708 bytes

johnv’s picture

Title: "Show next open day" only works if sunday is the first day of the week » Error in 'Show next open day' if sunday is not first day of the week
Version: 8.x-1.x-dev » 8.x-1.0-alpha2
Status: Needs review » Fixed
johnv’s picture

Version: 8.x-1.0-alpha2 » 8.x-1.0

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

johnv’s picture

Title: Error in 'Show next open day' if sunday is not first day of the week » 'Show next open day' error if sunday is not first day of the week