Page 1 of 2

Calendar off

Posted: 11. February 2013 21:52
by HomeRacingWorld
Your Portal Version: 1.0.0RC3
Your phpBB Type: Standard phpBB3
MODs installed: No
Your knowledge: Beginner
Boardlink: http://www.homeracingworld.us/portal.ph ... #minical39

What have you done before the problem was there?
Nothing

What have you already tryed to solve the problem?
Checked settings in the ACP

Description and Message
My calendar is off one day. Showing today is Sunday.

The one here is correct.

What is wrong? What made it change?

Thanks

Re: Calendar off

Posted: 12. February 2013 19:12
by archivar
Check it in the board settings, the date format.
If there also wrong, not the cause of the portal.
Please Inquire then at phpBB.com.

Re: Calendar off

Posted: 12. February 2013 21:57
by Marc
This seems to be an issue with UTC-x offsets. I'll try to have a look at that.

Re: Calendar off

Posted: 13. February 2013 14:09
by HomeRacingWorld
Thank you, I checked the board settings.

Re: Calendar off

Posted: 13. February 2013 18:49
by archivar
HomeRacingWorld wrote:Thank you, I checked the board settings.
They can say how they solved the problem?

Re: Calendar off

Posted: 14. February 2013 01:51
by HomeRacingWorld
It is not fixed. I checked all the settings in the ACP. I reloaded the module as well, but no luck yet.

The date and time are correct at the top of my forum, only this module is off.

Re: Calendar off

Posted: 15. February 2013 06:45
by greybox
I have same problem: calendar week day is incorrect on the Portal calendar (one day off) when the user time zone is negative vs UTC. The issue is also reported here:
https://www.phpbb.com/customise/db/mod/ ... s-t_103585

I understand that Marc is working on it, let's be patient.

Re: Calendar off

Posted: 15. February 2013 10:46
by Marc
This should fix the incorrect day in the calendar:
https://github.com/board3/Board3-Portal ... 8bb5c2888d

Re: Calendar off

Posted: 16. February 2013 09:58
by greybox
Works fine after manual editing, thank you!!

Will there be a problem in the future upgrades using automod?

Re: Calendar off

Posted: 17. February 2013 11:56
by Marc
No.

Re: Calendar off

Posted: 4. June 2013 15:26
by markc
I am having this problem also. I replaced the code you provided in the post above and it is still doing it. What information would you need for further assistance?

Re: Calendar off

Posted: 4. June 2013 15:32
by markc
never mind i missed a line ty for the fix

Re: Calendar off

Posted: 1. September 2013 04:41
by Kerrith
Marc wrote:This should fix the incorrect day in the calendar:
https://github.com/board3/Board3-Portal ... 8bb5c2888d

I too tried your fix, with a new install of phpBB 2.0.5 and Board3 Portal 2.0.1.

My problem is that when I try to go forward a month from July it skips August and jumps to Sept. Then from Sept forward it stays at Sept. Sept to Oct OK. I'm in Hawaii with no daylight savings.

Is there a whole new portal_calendar.php that I could upload and overwrite the existing one?

Otherwise the board works perfectly.

Thanks,

Kerry

Re: Calendar off

Posted: 1. September 2013 11:20
by archivar
Kerrith wrote: I too tried your fix, with a new install of phpBB 2.0.5 and Board3 Portal 2.0.1.
You must upgrade to phpBB v.3.0.11 for B3P v.2.0.1.

Re: Calendar off

Posted: 1. September 2013 12:00
by Kerrith
My bad. I do have 3.11.

I tried https://github.com/board3/Board3-Portal ... 8bb5c2888d but kept getting lots of errors.

Am I doing the editing correctly?

$this->stamp = strtotime($date);
return ($this->stamp);

In other words, I deleted both the salmon colored highlighted string and the pink colored highlight.


I noticed that the pink doesn't include the ; is that correct?

Thanks,

Kerry