PDA

View Full Version : Time Zone Setting in Site Manager is totally incorrect (times are vice-versa)


Rocko
07-31-2004, 04:01 AM
Hi.

The Time Zone Setting in the Site Manager in FlashFXP 3.0 .1015 has a bug.

As Example:
The Server time is GMT+0 (10 pm)
Then I set GMT+1, as the result, FlashFXP shows me now 9 pm.
It should show me 11 pm !

Then I set GMT-1, as the result, FlashFXP shows me now 11 pm.
It should show me 9 pm !

So the times are vice versa and not correct.
Any comments if this is a bug?

Harm
07-31-2004, 01:05 PM
The server timezone is the server timezone.
It is used to adjust the date/time displayed in the listview so it matches your timezone.

I'll give an example based on yours.
Let's say you create a folder at 10pm on the server which is gmt+0.
If you use the default settings in flashfxp (use server time), the creation time for this folder will be displayed as 10pm.
Now, you change the site settings so it becomes gmt+1 (but the site is still gmt+0). Then FlashFXP receives a time (10pm) and adjusts it to your timezone (ie. gmt). 10pm gmt+1 = 9pm gmt.
If you change the setting again to be gmt-1, it's adjusted like that: 10pm gmt-1 = 11pm gmt.

I hope it will help you to understand how it works.. and that I'm right. Maybe someone from the dev team could confirm it.

Rocko
07-31-2004, 02:35 PM
Thanks for your explanation, but thats still wrong.

GMT-2 is 8 PM
GMT-1 is 9 pm
GMT+0 is 10 pm
GMT+1 is 11 pm
GMT+2 is 12 pm

that are the timezones

And this timezones are wrong.
GMT-1 is 11 pm
GMT+0 is 10 pm
GMT+1 is 9 pm

Or have I misunderstood something? ;)

Harm
07-31-2004, 03:31 PM
Indeed, but the timestamp the server sends is still the same, in your case 10pm. Then FlashFXP uses the site settings to adjust the displayed time.
If the server was gmt-1 and was sending a timestamp for 10pm, then it would be displayed as 11pm (assuming your timezone is gmt) because 10pm gmt-1 is 11pm gmt.

bigstar
07-31-2004, 03:39 PM
Harm that was a pretty good explaination.

Using the time zone information set in the site profile the server time is converted to UTC then using your windows time zone settings the UTC time is converted to the local windows time.

This is required to properly perseve daylight savings/standard time.

Rocko Due to the way the calculation is performed (as explained above) adjusting the site profile timezone ahead one hour has a negitive effect.