Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Profile for jedivader

  • OFFLINE
  • Time Zone: GMT +0:00
  • Local Time: 21:24
  • Posts: 1
  • Profile Views: 1901
  • Location: Unknown
  • Gender: Unknown
  • Birthdate: Unknown

Signature

Posts

Posts

emo
Had the same issue.

Basically the problem is in this file:

C:\Program Files\wamp\www\booking\administrator\components\com_booking\helpers\booking.php


in this function:

function getWeekCalendar(&$subject, &$setting, $count = 'week', $isAdmin = false, $rids = null)


You need to replace the following lines:

this:
$setting->defaultYear = $setting->currentYear = (int) $current->format('Y');

with this:
$setting->defaultYear = $setting->currentYear = (int) $current->format('o');


this:
$setting->current = $current->format('Y-W');

with this:
$setting->current = $current->format('o-W');


this:
$setting->selected = $selected->format('Y-W');

with this:
$setting->selected = $selected->format('o-W');


this:
$setting->lastAllowYear = (int) $lastAllow->format('Y');

with this:
$setting->lastAllowYear = (int) $lastAllow->format('o');


this:
$setting->lastAllow = $lastAllow->format('Y-W');

with this:
$setting->lastAllow = $lastAllow->format('o-W');


this:
$setting->previousYear = (int) $last->format('Y');

with this:
$setting->previousYear = (int) $last->format('o');


Basically, you change the 'Y' format to the 'o' format. It gets the proper year if the current week is not from the current year.

o ISO-8601 year number. This has the same value as Y, except that if the ISO week number (W) belongs to the previous or next year, that year is used instead. (added in PHP 5.1.0)



I hope that helps somebody. The developer should say their final word on this, of course.
URGENT - Calendar do ...
Category: Community Support
More
User Login Empty