Menu Content

Support

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

Calendar is off by one day
(1 viewing) (1) Guest
Universal booking and reservations component for Joomla!.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.

TOPIC: Calendar is off by one day

Re: Calendar is off by one day 12 years, 6 months ago #31009

  • jitr
  • OFFLINE
  • ARTIO Support
  • Posts: 1432
Hello, control settings of Time offset in Joomla global configuration. It has to correspond with server setting.
ARTIO Support Team
The topic has been locked.

Re: Calendar is off by one day 12 years, 6 months ago #31011

I tried different server location settings months ago to see if that fixed the calendar, but none change the dates on the booking calendar, even after clearing cache.

I also tried setting the timezone in the .htaccess and that didn't have any effect either.

My Joomla server settings are for Pacific, USA, the server's physical location is in Arizona, USA. The difference between the Joomla settings and physical location is 1 hour, which shouldn't cause the entire calendar to be off by an entire day, and for it to not work correctly when dates are selected.
The topic has been locked.

Re: Calendar is off by one day 12 years, 6 months ago #31043

  • jitr
  • OFFLINE
  • ARTIO Support
  • Posts: 1432
Hello, the best way is see your installation. Could you send me URL and Joomla root access? You can write on Diese E-Mail-Adresse ist gegen Spambots geschützt! Du musst JavaScript aktivieren, damit Du sie sehen kannst. .
ARTIO Support Team
The topic has been locked.

Re: Calendar is off by one day 12 years, 5 months ago #31480

  • kass
  • OFFLINE
  • Posts: 2
I have the same problem.
How did you solve this???
The topic has been locked.

Re: Calendar is off by one day 12 years, 5 months ago #31542

  • jitr
  • OFFLINE
  • ARTIO Support
  • Posts: 1432
Hello, make sure if you have latest version. Then control time zone settings. If you have still this problem send me Joomla root access on Diese E-Mail-Adresse ist gegen Spambots geschützt! Du musst JavaScript aktivieren, damit Du sie sehen kannst. and I will investigate it.
ARTIO Support Team
The topic has been locked.

Re: Calendar is off by one day 12 years, 5 months ago #31557

I had the same problem. My timezone settings match. I noticed that the problem was only with the labels. If I marked an object to not be available on Sunday, it would show on the calendar as not available on Saturday. When you clicked in the Friday box, a Saturday date was entered. In other words, it worked. Only the labels were wrong.

I edited views/subject/tmpl/default_calendar_weekly.php to fix the problem. I know this is not really the right place for the fix. It looks like this file gets the date from helpers/booking.php in the admin components area.

Because this is not really the right way to fix this and the code I used is ugly, I was reluctant to post this. But, this has worked for me and may help others with this problem.

Around line 70 of the file

<!-- <h2><?php echo AHtml::date($firstDay->date, ADATE_FORMAT_NICE); ?></h2> -->
<h2><?php echo date( 'D d M', strtotime ( '+1 day' , strtotime ( AHtml::date($firstDay->date, ADATE_FORMAT_NICE) ) ) ); ?></h2>

Hope this helps someone else.
The topic has been locked.
User Login Empty