Advertisement:

Author Topic: Problem with Daysaving Time  (Read 1543 times)

Offline Cupropituvanso Draco

  • Semi-Newbie
  • *
  • Posts: 24
Problem with Daysaving Time
« on: April 07, 2012, 03:10:12 PM »
Greets

I have a problem with daysaving time. And I have tried many things in the meantime.

I had programmed a little script which shows the servertime = correct.
And I have I require SSI.php it was one hour back.

In Database there is standing Etc/GMT-1, and If I change it to -2 it shows the correct time, but all entries where changed, even this one which were made in winter?
I have a event-system and all events in future are now +1 hour. Interesting was the timecode converted shows also +1 (on http://www.unixtime.de/index.php [nofollow]).

In mysql setting table is CEST entered.

Can you help me?
I will not have the same problems two times in Year and with events now entered in next winter.

Offline K@

  • Lead Support Specialist
  • SMF Master
  • *
  • Posts: 46,950
  • Gender: Male
  • Yum!
Re: Problem with Daysaving Time
« Reply #1 on: April 07, 2012, 03:23:14 PM »
As this is a question about a script, I've taken the liberty of moving this to the... er... Scripting board. :)

MrPhil

  • Guest
Re: Problem with Daysaving Time
« Reply #2 on: April 07, 2012, 04:27:36 PM »
/etc/GMT-1 is 1 hour east of GMT (note the reversed sign) year round. Change your entry to Europe/Berlin or whatever is appropriate for you (see http://fi2.php.net/manual/en/timezones.php) and not only will you be in the right time zone, but also using the correct Daylight Saving Time/Summer Time rules.

This assumes you have PHP 5.1 or higher, which permits this functionality.

Offline Cupropituvanso Draco

  • Semi-Newbie
  • *
  • Posts: 24
Re: Problem with Daysaving Time
« Reply #3 on: April 07, 2012, 08:16:11 PM »
okay, great, thanks

I have configured it, and it shows the correct time and also mktime works correct.

perfect :)

MrPhil

  • Guest
Re: Problem with Daysaving Time
« Reply #4 on: April 08, 2012, 10:36:21 AM »
As Mr. Burns says, "Ex - cel - lent!" :)