Welcome Guest, Not a member yet? Register   Sign In
Timezone Confussion -> convert_to_gmt -> daylight saving zones / Am I right ? Or wrong
#4

[eluser]brototyp[/eluser]
I was running out of characters, so I had to do a new post.

Now to my DST problem. It's confusing me.

In my code I din't worry about any DST. I added an event with the current UM5 time.
The date was displayed correctly in UP1 in my current time.

When I use the DST option in my controller when I convert my date to GMT time
Code:
$gmt_conversion = convert_to_gmt($xy_unix, $event_timezone, TRUE);
and use it in the view to make the date UP1 then I get a false return.
Code:
$date_timezone = gmt_to_local($date_unix, $timezone, True);

I insert the current UM5 time then the UP1 is 1 hour later the it should be.

Here is a link to a website where you get the current times of different timezones.

In both timezones there is DST at the moment --> Daylight saving time: +1 hour
although I didn't use DST it worked. ??? I mean I understand that the difference (6 hours) between both timezones is correct, because both timezones got DST at the moment.

I ask myself what would happen if the DST changes in one timezone. (I think UM5 changes two or three weeks earlier then UP1) Would my result be the same when somebody would add an event in this gap ???

Maybe I get anything wrong with setting the DST time option ..... I don't know.

I'm confused Greetings brototyp


Messages In This Thread
Timezone Confussion -> convert_to_gmt -> daylight saving zones / Am I right ? Or wrong - by El Forum - 06-17-2009, 01:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB