Date / Timeproblem

  • FrankM
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 6 months ago #71382 by FrankM
Date / Timeproblem was created by FrankM
ok, i live in germany. We use daylight saving time :(

Example when someone register for an event.
Actual Time: 20:00:00
MySQL-Entry: 19:00:00

In EB that's no error, but i use some php scripts to show waitingslist. And then i come in trouble :ohmy: I have fixed my php-script to solve this problem but i don't know why eb store this time :woohoo:

My Hoster checked all timesettings on the server. All are ok.
Joomla is in the correct timezone Europe/Berlin

Joomla 3.4.5
EB 1.7.4

I can't update atm EB, i have too many overrides and no time for it :(

Someone with an idea?

Productiv: Joomla 3.5.1 / EB 2.4.3 / PHP 7.0.5
Testsys: Joomla 3.5.1 / EB 2.4.3 / PHP 7.0.5

Sorry, english isn't my native language.

Please Log in or Create an account to join the conversation.

  • FrankM
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 5 months ago #72122 by FrankM
Replied by FrankM on topic Date / Timeproblem
It looks that EB stored the Date/Time in UTC.

So i must add the time difference to my output.

Example:
Code:
$timestamp = strtotime($datum_kurz2) + 60*60; //3600 Sekunden addieren

That's no EB problem, only my problem to code :laugh:

Productiv: Joomla 3.5.1 / EB 2.4.3 / PHP 7.0.5
Testsys: Joomla 3.5.1 / EB 2.4.3 / PHP 7.0.5

Sorry, english isn't my native language.

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #72212 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Date / Timeproblem
:D. That's none Joomla way. In Joomla, we can use JHtml::_('date'.... method as we are using in EB and it works very well

Tuan
The following user(s) said Thank You: FrankM

Please Log in or Create an account to join the conversation.

  • FrankM
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 5 months ago #72256 by FrankM
Replied by FrankM on topic Date / Timeproblem
I will work on my coding style :P

Productiv: Joomla 3.5.1 / EB 2.4.3 / PHP 7.0.5
Testsys: Joomla 3.5.1 / EB 2.4.3 / PHP 7.0.5

Sorry, english isn't my native language.

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #72285 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Date / Timeproblem
:D. Good luck with your own coding style
The following user(s) said Thank You: FrankM

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc