[BETA][3.2][3.3] Kalender

In diesem Forum können Extension-Autoren ihre Extensions vorstellen, die sich noch im Entwicklungsstatus befinden. Der Einbau in Foren im produktiven Betrieb wird nicht empfohlen.
giveitago
Mitglied
Beiträge: 4
Registriert: 07.10.2025 19:49

Re: [BETA][3.2][3.3] Kalender

Beitrag von giveitago »

Hello. I hope it's ok to post in English?

Thank you for this calendar extension, it is a great addition to any forum.

I have the same problem as mentioned by @youngrichkid and @gopher earlier this year. My timezone is set to UTC+1. The entries in the Weekly Overview (and in the main calendar) are correct , but the date in the Upcoming Dates is showing the day before...

[ externes Bild ]

I see in the main.php file that the code is trying to use the user_timezone or the board_timezone but not sure why it's not using them...?

[ externes Bild ]


Also, would it be possible to have the option to set recurring events in the ACP (Date List)?

Many thanks in advance.
HJW
Mitglied
Beiträge: 1311
Registriert: 20.04.2007 20:48
Wohnort: 45481 Mülheim an der Ruhr
Kontaktdaten:

Re: [BETA][3.2][3.3] Kalender

Beitrag von HJW »

I don't know why that is. If it's always this one day, you could do the following:

main_listener line 1709
replace

Code: Alles auswählen

			$date = $this->user->format_date(strtotime(trim($event_date, ' :')));
with

Code: Alles auswählen

			$date = $this->user->format_date(strtotime(trim($event_date, ' :')) + 86400);
main_listener line 1713
replace

Code: Alles auswählen

			$date = date($this->config['default_dateformat'],strtotime(trim($event_date, ' :')));
with

Code: Alles auswählen

			$date = date($this->config['default_dateformat'],strtotime(trim($event_date, ' :')) + 86400);
giveitago
Mitglied
Beiträge: 4
Registriert: 07.10.2025 19:49

Re: [BETA][3.2][3.3] Kalender

Beitrag von giveitago »

Thank you, for your fast response.

After further testing and using “Calendar input with time”, I have realised there is a difference of 1 hour in the “Upcoming Dates” and also in the event box that is added to the post. In the Weekly Overview and main calendar they are correct.

The guest user, anonymous user and UCP are all set to UTC+1 & Europe/London.

The server timezone is the only one I haven’t checked yet. I will check the timezone setting at the host (IONOS) but not sure if I can change that?

I will also try your suggested changes and report back here.

Many thanks again. I have just spent the last couple of hours reading through this whole thread. Your dedication and support is truly amazing.

Please refrain from using the full quote button or quoting the whole previous post in the future, that clutters your post and reduces readability, I deleted the full quote.
Mike-on-Tour
giveitago
Mitglied
Beiträge: 4
Registriert: 07.10.2025 19:49

Re: [BETA][3.2][3.3] Kalender

Beitrag von giveitago »

I've confirmed with IONOS that the server timezone is different, currently set to CEST which is UTC+2 so this must be the cause of the 1 hour difference I'm seeing. Unfortunately as we are on shared hosting they can't/won't change the timezone so I'm looking in to moving to a dedicated server.

In the meantime, are you able to tell me which file(s) contains the code for the box that is added to a post when an event is added (see screenshot)?

[ externes Bild ]

If I can remove this for now and disable Upcoming Dates it will be a good temporary workaround.

Many thanks.
HJW
Mitglied
Beiträge: 1311
Registriert: 20.04.2007 20:48
Wohnort: 45481 Mülheim an der Ruhr
Kontaktdaten:

Re: [BETA][3.2][3.3] Kalender

Beitrag von HJW »

The file:
ext\hjw\calendar\styles\prosilver\template\event\viewtopic_body_postrow_post_content_footer.html

the box:

Code: Alles auswählen

	{% if postrow.CALENDAR_ENTRY.LINK %}
		<a href="{{ postrow.CALENDAR_ENTRY.LINK }}">
			<div class="participants">
				<div class="cal-day">
					{{ lang('CALENDAR_ENTRY') }}
				</div>
				{{ postrow.CALENDAR_ENTRY.EVENT }}<br>
				<span class="eventbg" style="
				{% if postrow.CALENDAR_ENTRY.COLOR %}color:#{{ postrow.CALENDAR_ENTRY.COLOR }};{% endif %}
				{% if postrow.CALENDAR_ENTRY.BCOLOR %}background-color:#{{ postrow.CALENDAR_ENTRY.BCOLOR }};{% endif %}
				{% if postrow.CALENDAR_ENTRY.BIG %}font-weight:bold;{% endif %}
				">
				{{ postrow.CALENDAR_ENTRY.NAME }}
				</span><br>
				{% if postrow.CALENDAR_ENTRY.DATE %}{{ postrow.CALENDAR_ENTRY.DATE }}<br>{% endif %}
				{% if postrow.CALENDAR_ENTRY.TEXT %}{{ postrow.CALENDAR_ENTRY.TEXT }}{% endif %}
			</div>
		</a>
	{% endif %}
If you only want to change the time by one hour, replace 86400 with 60*60 or 3600.
.
giveitago
Mitglied
Beiträge: 4
Registriert: 07.10.2025 19:49

Re: [BETA][3.2][3.3] Kalender

Beitrag von giveitago »

That’s great, thank you.
Antworten

Zurück zu „Extensions in Entwicklung“