diddipoeler / sportsmanagement

Die neue Sports Management Komponente für Joomla 3/4/5
GNU General Public License v2.0
27 stars 27 forks source link

Wrong day in teamplan #1739

Closed Tanoke closed 1 month ago

Tanoke commented 5 months ago

The game dates and time are specified correctly in the match program. Image 1

1

The days is shown correctly in the results view. Image 2

2

But the teamplan view for one match has the wrong day. The date shows the next day but the time is correct. Image 3.

3

The match is played at midnight, so could the reason be related to the time zone? The time zone is set to UTC+2.

Is there a bug?

I hope you understood what I meant above.

Tanoke commented 5 months ago

Well. I tested that problem even more closely. The server's time zone is UTC+2 and Joomla's time zone is also set to UTC+2. When I change Joomla's time zone to UTC+0 the date in teamplan shows correctly. That is, June 29, 2024 at 10 p.m. Other dates in teamplan are displayed correctly, the change had no effect, i.e. they are still displayed correctly.

I left Joomla's time zone setting UTF+0 in effect for the time being so that the date is displayed correctly to visitors. I hope there is a solution to this and I can restore the time zone setting to the correct one.

ortwin20000 commented 3 months ago

I did a Pull-Request to fix this issue. After the merge please try it again.

Same Test-Setup: image

Before Code-Change: image

After Code-Change: image

sigal commented 1 month ago

@Tanoke - Was the problem resolved?

Tanoke commented 1 month ago

Yes, the problem is solved