Timezone not sticking

My servoy.properties file correctly shows

timezone.default=Australia/Melbourne

When I load Servoy (2.2.5, win XP SP2) and go to Prefs>Locale, even without loading any solution, the setting is GMT! all date fields behave as if the setting is GMT. However, the properties file is still showing timezone.default=Australia/Melbourne

I have unloaded 3rd party beans and plugins thinking that they might be the culprit. No difference when restarting Servoy.

Any suggestions on where I might look for the cause of this problem?

I just did a clean install of Servoy Developer 2.2.5 into a new folder, and I still get the same error. Servoy.properties file says Australia/Melbourne, but when I start Dev and go to Prefs>Locale, the default TZ is always GMT.

HELP!!!

I’ve now tried this on 3 different machines here (1 Mac, 2 WIN XP) and a friend has tried it at his place. Servoy saves the Timezone to the Properties file, but does not read it on loading. One machine always loads as GMT, another always as Sydney, no matter what it is saved as. Is this some weird Australian thing? Has anyone else noticed it?

Tony

I can’t reproduce this at all.

I am testing with 2.2.5 and can change it in any thing and the next restart that is selected. It is never reverted to whatever.

What i do is start developer. Don’t open a solution close the open solution dialog and then directly go to the preference dialog.
And looking at that value and change it to something else and restart again.

Hi Johan, that’s exactly what I do. Even if I do nothing else, the next time I open Servoy Developer it’s back to GMT on this machine, or Sydney on my MAC. Servoy 2.2.5, Java 1.5

One friend has the same problem, another one doesn’t. I wonder where else Servoy might be looking.

Could anyone else reading this post give it a try and report the result?

can you find anywhere a servoy.properties file on your filesystem?

I have no idea why that would go wrong at your place. I can’t reproduce it at all. It always sticks.

Make sure you have write permissions on the servoy.properties file or any change will not stick, it happened to me once after moving a servoy installation between two different MacOSX systems.

I checked the write permissions, they are ok. In any case, I can see the TZ that I’ve saved correctly saved in servoy.properties.

I have another observation. If I change the Windows System Timezone in the control panel before starting Servoy, the TZ in locale will also change.
For example. I am in Eastern Australia (UTC +10). I just changed the Windows TZ to UTC +8 and then launched Servoy. The TZ in Servoy Prefs
had changed to Australia/Perth! Servoy Properties still says Australia/Victoria.

Is it possible that a plugin can alter the TZ?

I am unable to reproduce this as well.

Does anyone have this problem still in servoy 2.2.6 or 3.0.2?

The problem seems to be caused by a bug introduced in java 1.5, see http://bugs.sun.com/bugdatabase/view_bu … id=6242673

Upgrading 1.5.0_07-b03 or later should fix this problem

Many thanks for finding the source of this annoying problem! The behaviours of different JVMs explains why some were seeing this while most were not.

Wow, that one came from far far away.

Chapeau for digging that up :)