From 01e9a8e40351a87f6548a4f55de842d6f6918ad0 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 15 Sep 2026 02:44:28 +0000
Subject: [PATCH] =Found little glitch with auto-adding rewrite rules to taxonomy Registrar instances where we have the post type as the base in the url rewrite
---
inc/helpers/time.php | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/inc/helpers/time.php b/inc/helpers/time.php
index d598e89..294f10e 100644
--- a/inc/helpers/time.php
+++ b/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
@@ -374,15 +374,15 @@
* @throws DateInvalidTimeZoneException
* @throws DateMalformedStringException
*/
-function jvbIsTimeBetween(?string $start_time = null, ?string $end_time = null, string $timezone = 'America/Edmonton'):bool {
+function jvbIsTimeBetween(?string $start_time = null, ?string $end_time = null):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'];
}
// Get current time in specified timezone
- $current_time = new DateTime('now', new DateTimeZone($timezone));
+ $current_time = new DateTime('now', wp_timezone());
$current_time_string = $current_time->format('H:i');
// Normalize time formats (handle with or without seconds)
--
Gitblit v1.10.0