• Resolved Maniak

    (@maniak)


    Hello,

    I have an issue with the sync from Google for the special opening hours.

    We’ve added special hours for the Christmas period. For example, on December 26th: 8:00-12:00 and 15:00-18:30.
    Unfortunately, only the morning hours are retrieved, not the afternoon hours.

    Can you confirm there is an issue ? Or is that something that is not correctly configured ?

    Thank you.

    Please find below the data retrieved:

    {
    "googleMapsUri":"https://maps.google.com/?cid=18112836122342315186&g_mp=CiVnb29nbGUubWFwcy5wbGFjZXMudjEuUGxhY2VzLkdldFBsYWNlEAIYBCAA",
    "regularOpeningHours":{
    "openNow":false,
    "periods":[
    {
    "open":{
    "day":0,
    "hour":8,
    "minute":0
    },
    "close":{
    "day":0,
    "hour":12,
    "minute":0
    }
    },
    {
    "open":{
    "day":1,
    "hour":8,
    "minute":0
    },
    "close":{
    "day":1,
    "hour":12,
    "minute":0
    }
    },
    {
    "open":{
    "day":1,
    "hour":16,
    "minute":30
    },
    "close":{
    "day":1,
    "hour":18,
    "minute":30
    }
    },
    {
    "open":{
    "day":2,
    "hour":8,
    "minute":0
    },
    "close":{
    "day":2,
    "hour":12,
    "minute":0
    }
    },
    {
    "open":{
    "day":2,
    "hour":16,
    "minute":30
    },
    "close":{
    "day":2,
    "hour":18,
    "minute":30
    }
    },
    {
    "open":{
    "day":4,
    "hour":8,
    "minute":0
    },
    "close":{
    "day":4,
    "hour":12,
    "minute":0
    }
    },
    {
    "open":{
    "day":4,
    "hour":16,
    "minute":30
    },
    "close":{
    "day":4,
    "hour":18,
    "minute":30
    }
    },
    {
    "open":{
    "day":5,
    "hour":8,
    "minute":0
    },
    "close":{
    "day":5,
    "hour":12,
    "minute":0
    }
    },
    {
    "open":{
    "day":5,
    "hour":16,
    "minute":30
    },
    "close":{
    "day":5,
    "hour":18,
    "minute":30
    }
    },
    {
    "open":{
    "day":6,
    "hour":8,
    "minute":0
    },
    "close":{
    "day":6,
    "hour":12,
    "minute":0
    }
    },
    {
    "open":{
    "day":6,
    "hour":15,
    "minute":0
    },
    "close":{
    "day":6,
    "hour":18,
    "minute":30
    }
    }
    ],
    "weekdayDescriptions":[
    "Monday: 8:00\u202fAM\u2009\u2013\u200912:00\u202fPM, 4:30\u2009\u2013\u20096:30\u202fPM",
    "Tuesday: 8:00\u202fAM\u2009\u2013\u200912:00\u202fPM, 4:30\u2009\u2013\u20096:30\u202fPM",
    "Wednesday: Closed",
    "Thursday: 8:00\u202fAM\u2009\u2013\u200912:00\u202fPM, 4:30\u2009\u2013\u20096:30\u202fPM",
    "Friday: 8:00\u202fAM\u2009\u2013\u200912:00\u202fPM, 4:30\u2009\u2013\u20096:30\u202fPM",
    "Saturday: 8:00\u202fAM\u2009\u2013\u200912:00\u202fPM, 3:00\u2009\u2013\u20096:30\u202fPM",
    "Sunday: 8:00\u202fAM\u2009\u2013\u200912:00\u202fPM"
    ],
    "nextOpenTime":"2025-12-26T07:00:00Z"
    },
    "businessStatus":"OPERATIONAL",
    "displayName":{
    "text":"Epicerie de La Sage",
    "languageCode":"en"
    },
    "currentOpeningHours":{
    "openNow":false,
    "periods":[
    {
    "open":{
    "day":0,
    "hour":8,
    "minute":0,
    "date":{
    "year":2025,
    "month":12,
    "day":28
    }
    },
    "close":{
    "day":0,
    "hour":12,
    "minute":0,
    "date":{
    "year":2025,
    "month":12,
    "day":28
    }
    }
    },
    {
    "open":{
    "day":1,
    "hour":8,
    "minute":0,
    "date":{
    "year":2025,
    "month":12,
    "day":29
    }
    },
    "close":{
    "day":1,
    "hour":12,
    "minute":0,
    "date":{
    "year":2025,
    "month":12,
    "day":29
    }
    }
    },
    {
    "open":{
    "day":1,
    "hour":15,
    "minute":0,
    "date":{
    "year":2025,
    "month":12,
    "day":29
    }
    },
    "close":{
    "day":1,
    "hour":18,
    "minute":30,
    "date":{
    "year":2025,
    "month":12,
    "day":29
    }
    }
    },
    {
    "open":{
    "day":2,
    "hour":8,
    "minute":0,
    "date":{
    "year":2025,
    "month":12,
    "day":30
    }
    },
    "close":{
    "day":2,
    "hour":12,
    "minute":0,
    "date":{
    "year":2025,
    "month":12,
    "day":30
    }
    }
    },
    {
    "open":{
    "day":2,
    "hour":15,
    "minute":0,
    "date":{
    "year":2025,
    "month":12,
    "day":30
    }
    },
    "close":{
    "day":2,
    "hour":18,
    "minute":30,
    "date":{
    "year":2025,
    "month":12,
    "day":30
    }
    }
    },
    {
    "open":{
    "day":3,
    "hour":8,
    "minute":0,
    "date":{
    "year":2025,
    "month":12,
    "day":31
    }
    },
    "close":{
    "day":3,
    "hour":12,
    "minute":0,
    "date":{
    "year":2025,
    "month":12,
    "day":31
    }
    }
    },
    {
    "open":{
    "day":3,
    "hour":15,
    "minute":0,
    "date":{
    "year":2025,
    "month":12,
    "day":31
    }
    },
    "close":{
    "day":3,
    "hour":18,
    "minute":30,
    "date":{
    "year":2025,
    "month":12,
    "day":31
    }
    }
    },
    {
    "open":{
    "day":4,
    "hour":8,
    "minute":0,
    "date":{
    "year":2025,
    "month":12,
    "day":25
    }
    },
    "close":{
    "day":4,
    "hour":12,
    "minute":0,
    "date":{
    "year":2025,
    "month":12,
    "day":25
    }
    }
    },
    {
    "open":{
    "day":5,
    "hour":8,
    "minute":0,
    "date":{
    "year":2025,
    "month":12,
    "day":26
    }
    },
    "close":{
    "day":5,
    "hour":12,
    "minute":0,
    "date":{
    "year":2025,
    "month":12,
    "day":26
    }
    }
    },
    {
    "open":{
    "day":5,
    "hour":15,
    "minute":0,
    "date":{
    "year":2025,
    "month":12,
    "day":26
    }
    },
    "close":{
    "day":5,
    "hour":18,
    "minute":30,
    "date":{
    "year":2025,
    "month":12,
    "day":26
    }
    }
    },
    {
    "open":{
    "day":6,
    "hour":8,
    "minute":0,
    "date":{
    "year":2025,
    "month":12,
    "day":27
    }
    },
    "close":{
    "day":6,
    "hour":12,
    "minute":0,
    "date":{
    "year":2025,
    "month":12,
    "day":27
    }
    }
    },
    {
    "open":{
    "day":6,
    "hour":15,
    "minute":0,
    "date":{
    "year":2025,
    "month":12,
    "day":27
    }
    },
    "close":{
    "day":6,
    "hour":18,
    "minute":30,
    "date":{
    "year":2025,
    "month":12,
    "day":27
    }
    }
    }
    ],
    "weekdayDescriptions":[
    "Monday: 8:00\u202fAM\u2009\u2013\u200912:00\u202fPM, 3:00\u2009\u2013\u20096:30\u202fPM",
    "Tuesday: 8:00\u202fAM\u2009\u2013\u200912:00\u202fPM, 3:00\u2009\u2013\u20096:30\u202fPM",
    "Wednesday: 8:00\u202fAM\u2009\u2013\u200912:00\u202fPM, 3:00\u2009\u2013\u20096:30\u202fPM",
    "Thursday: 8:00\u202fAM\u2009\u2013\u200912:00\u202fPM",
    "Friday: 8:00\u202fAM\u2009\u2013\u200912:00\u202fPM, 3:00\u2009\u2013\u20096:30\u202fPM",
    "Saturday: 8:00\u202fAM\u2009\u2013\u200912:00\u202fPM, 3:00\u2009\u2013\u20096:30\u202fPM",
    "Sunday: 8:00\u202fAM\u2009\u2013\u200912:00\u202fPM"
    ],
    "specialDays":[
    {
    "date":{
    "year":2025,
    "month":12,
    "day":25
    }
    },
    {
    "date":{
    "year":2025,
    "month":12,
    "day":26
    }
    },
    {
    "date":{
    "year":2025,
    "month":12,
    "day":29
    }
    },
    {
    "date":{
    "year":2025,
    "month":12,
    "day":30
    }
    },
    {
    "date":{
    "year":2025,
    "month":12,
    "day":31
    }
    }
    ],
    "nextOpenTime":"2025-12-26T07:00:00Z"
    }
    }
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Noah Hearle

    (@designextreme)

    @maniak Previously, I did spot something incorrect with the interpretation of the Special Opening hours (called Current Opening Hours in the retrieved data), but that only applied to 24 hour opening times generally.

    I’ll use your example here and, if I can replicate the error, I’ll create a fix in the next release. Thanks for bringing this to my attention.

    Thread Starter Maniak

    (@maniak)

    Hello @designextreme ,

    Is it supposed to be fixed in version 2.6 ?

    I just tested but exceptions are still retrieved with morning hours only.

    Thank you.

    • This reply was modified 3 months, 3 weeks ago by Maniak.

    I can confirm the bug. If there is two opening hours interval for a special day, only the first interval is retreived for the special day.
    I made a workaround by commenting out the following lines in index.php( line 2065 in v2.6):

    /*			$opening_hours['special'][$timestamp] = array(
    'timestamp' => $timestamp,
    'date' => $date,
    'closed' => !$open_always,
    'hours_24' => $open_always,
    'hours' => NULL,
    'label' => (is_array($this->special) && isset($this->special[$timestamp]) && isset($this->special[$timestamp]['label'])) ? $this->special[$timestamp]['label'] : NULL,
    'note' => (is_array($this->special) && isset($this->special[$timestamp]) && isset($this->special[$timestamp]['note'])) ? $this->special[$timestamp]['note'] : NULL
    );
    */
    • This reply was modified 2 months, 3 weeks ago by mrart.
    • This reply was modified 2 months, 3 weeks ago by mrart.

    Hi, I have the same issue.

    Plugin Author Noah Hearle

    (@designextreme)

    Thanks for checking this and confirming it affects others too. I’ll prioritise the fix in the next release.

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.