×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Uhrzeit immer 2 Stunden später

Uhrzeit immer 2 Stunden später 11 years 8 months ago #17488

  • Rafael
  • Rafael's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 148
  • Thank you received: 0
Also bei mir ist bei allen Veranstaltungen die Zeit um 2 Stunden nach hinten verschoben. In der Event Übersicht sowie im Modul. Also Habe Joomla + Benutzer auf "Berlin" Zeit was auch bei der Erstellung von Artikeln korrekt funktioniert. Nur in Matukio ist alles um 2 Stunden versetzt. Wie kann ich das Problem beheben? DRINGEND! Danke!

Wenn ich Joomla+Benutzer auf UTC stelle funktioniert Matukio korrekt, nur Joomla nicht - das kanns ja nicht sein - Berlin ist ja die korrekte Zeit

Uhrzeit immer 2 Stunden später 11 years 8 months ago #17489

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
Hallo theraf,

komisch, eventuell stimmt in der Joomla Datenbank mit den gespeicherten Benutzer-Einstellungen nicht. Das hatten wir mal bei einem anderen Kunden (Obwohl bei dem Kunden Berlin ausgewählt war, wurde UTC-Zeit angezeigt).

Funktioniert es mit anderen Benutzern bzw. ohne Anmeldung?

Yves

Uhrzeit immer 2 Stunden später 11 years 8 months ago #17490

  • Rafael
  • Rafael's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 148
  • Thank you received: 0
Habe das Problem auf zwei separaten Seiten. Das Problem besteht nur mit der Komponente Matukio. Notlösung ist nun auf UTC zu stellen, das ist zwei Stunden zurück+Matukio zwei stunden vor = richtige Uhrzeit für Matukio. Der Rest der Seite ist dann standardmäßig zwei stunden vor.

Würde euch bitten das noch mal zu untersuchen mit der Einstellung "Berlin" im Global+Benutzer.

Uhrzeit immer 2 Stunden später 11 years 8 months ago #17492

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
Komisch, hab die selben Zeiteinstellungen auf vielen Seiten und da funktioniert es ohne Probleme und seit Hartmut hatten wir auch keinen Report mehr. Die Zeitangaben werden bei Matukio in UTC gespeichert und dann jeweils nach den Einstellungen des Benutzeres (oder falls nicht registriert der der Joomla Einstellungen) ausgegeben.

Hab das grad auch nochaml auf unserer Demoseite nachgesehn, das funkioniert dort auch ohne Probleme. Kannst du mir evtl. mal einen Testbenutzer auf einer deiner Seiten erstellen? (Per PM oder Skype)

Yves

Uhrzeit immer 2 Stunden später 11 years 8 months ago #17493

  • Rafael
  • Rafael's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 148
  • Thank you received: 0
In der Joomla Konfiguration muss ich doch aber Berlin einstellen?
UTC entspricht doch MEZ +-0 und Berlin MEZ+2 (Sommerzeit)

Wenn Berlin eingestellt ist, ist die restliche Seite korrekt - Matuktio 2 Stünden später. Bei UTC ist die restliche Seite zwei Stunden davor - Matukio korrekt.

Uhrzeit immer 2 Stunden später 11 years 8 months ago #17529

  • Sebastiaan
  • Sebastiaan's Avatar
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 82
  • Thank you received: 3
I remember this bug also being in the original Seminar. It was solved on their forum, but it seems
that all old topics have been removed. I cannot find it anymore...

If I remember correctly it had to do with one instance of mktime and changing this to gmmktime in the mod_seminar.php / mod_matukio.php file. Just can't find which one...

Hmmmm

I now see that it is not only in my calendar, but also in every event detail view.

Uhrzeit immer 2 Stunden später 11 years 8 months ago #17541

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
@S Span,
Are we talking about the component or the module?

Please test the date with com_content (article manager). Write an article and check the creation date, then edit it and check the modified date? Is it correct?

I'm sure that Matukio (the component) doesn't have any timezone problems - I'm sure with 99.99999999% that your site is not properly configured. (can't comment on the module though)

Regards,
Daniel

Uhrzeit immer 2 Stunden später 11 years 8 months ago #17578

  • Sebastiaan
  • Sebastiaan's Avatar
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 82
  • Thank you received: 3
Hello Daniel,

Sorry for the confusion. I thought the time difference was only in the module, but it is also in the component.

There seems to be a bug in J2.5.6: joomlacode.org/gf/project/joomla/tracker...racker_item_id=28535
That causes this offset. I have corrected the affected code and now the modified date and time of my articles are correct (they were also 2 hours ahead).

But... The times Matukio displays in the component and Module are still two hours ahead.

Also, I turned on maximum error reporting on my site and the component gives this error:
Notice: Undefined offset: -1 in /components/com_matukio/router.php on line 138

My site is configured correctly. Timezone is set to Europe/Amsterdam and it is a fresh J2.5.6 install. The server timezone is also Europe/Amsterdam.

Any help would be appreciated.

Sebastiaan

Uhrzeit immer 2 Stunden später 11 years 8 months ago #17586

  • Sebastiaan
  • Sebastiaan's Avatar
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 82
  • Thank you received: 3
Update1: The booked time is displayed correctly, but the begin and end times are still 2 hours off. I checked the mysql database, but the times in the database are correct. I think the problem is that in J1.5 with Seminar the times in the database were stored as CET and now in J2.5 with Matukio the times are stored as UTC. Since J2.5 now thinks that the stored time is UTC (while it in fact is CET), it automatically ads 2 hours, thus creating the 2 hour time offset.

Update2: Since times are now stored in UTC instead off CET all times in the mysql database for Matukio need to be updated when you imperted data from Seminar. To do so, execute this sql statement (in phpMyAdmin) (replace vlgf5 with your own prefix):
UPDATE vlgf5_matukio SET begin = DATE_SUB(begin, INTERVAL 2 HOUR);
UPDATE vlgf5_matukio SET end = DATE_SUB(end, INTERVAL 2 HOUR);
UPDATE vlgf5_matukio SET booked = DATE_SUB(booked, INTERVAL 2 HOUR);

You can test the code by executing this statement to see if it does what you want before you make any changes. Also, always backup you database before executing mysql statements!
SELECT begin, DATE_SUB(begin, INTERVAL 2 HOUR) FROM vlgf5_matukio;
  • Page:
  • 1
Time to create page: 0.131 seconds