Jake Vanderwerf
2026-09-04 32ce5c542c90be348895328078e392dde2052957
inc/helpers/time.php
@@ -1,6 +1,6 @@
<?php
use JVBase\base\Options;
use JVBase\base\options;
use JVBase\managers\Cache;
use JVBase\meta\Meta;
@@ -322,7 +322,7 @@
{
   // Get hours data if not provided
   if ($hours_data === null) {
      $hours_data = Options::get('openingHours');
      $hours_data = options::get('openingHours');
   }
   // Return false if no hours data
@@ -376,7 +376,7 @@
 */
function jvbIsTimeBetween(?string $start_time = null, ?string $end_time = null, string $timezone = 'America/Edmonton'):bool {
   if (!$start_time && !$end_time) {
      $hours = Options::get('today_hours');
      $hours = options::get('today_hours');
      $start_time = $hours['time_start'];
      $end_time = $hours['time_end'];
   }