# Timezone not sticking

**URL:** <https://forum.servoy.com/t/timezone-not-sticking/6212>\
**Category:** Classic Servoy\
**Created:** [July 11, 2006, 1:07pm UTC](https://forum.servoy.com/t/timezone-not-sticking/6212 "2006-07-11T13:07:45Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![antonio](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@antonio](https://forum.servoy.com/u/antonio)\
**Post date:** [July 11, 2006, 1:07pm UTC](https://forum.servoy.com/t/timezone-not-sticking/6212/1 "2006-07-11T13:07:45Z")

</div>

My servoy.properties file correctly shows

```auto
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?

---

<div class="post-metadata">

**Author:** ![antonio](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@antonio](https://forum.servoy.com/u/antonio)\
**Post date:** [July 15, 2006, 2:11am UTC](https://forum.servoy.com/t/timezone-not-sticking/6212/2 "2006-07-15T02:11:05Z")

</div>

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!!!

---

<div class="post-metadata">

**Author:** ![antonio](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@antonio](https://forum.servoy.com/u/antonio)\
**Post date:** [July 15, 2006, 7:26am UTC](https://forum.servoy.com/t/timezone-not-sticking/6212/3 "2006-07-15T07:26:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [July 18, 2006, 12:48pm UTC](https://forum.servoy.com/t/timezone-not-sticking/6212/4 "2006-07-18T12:48:41Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![antonio](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@antonio](https://forum.servoy.com/u/antonio)\
**Post date:** [July 18, 2006, 1:10pm UTC](https://forum.servoy.com/t/timezone-not-sticking/6212/5 "2006-07-18T13:10:54Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [July 18, 2006, 2:57pm UTC](https://forum.servoy.com/t/timezone-not-sticking/6212/6 "2006-07-18T14:57:02Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ngervasi](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@ngervasi](https://forum.servoy.com/u/ngervasi)\
**Post date:** [July 18, 2006, 5:10pm UTC](https://forum.servoy.com/t/timezone-not-sticking/6212/7 "2006-07-18T17:10:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![antonio](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@antonio](https://forum.servoy.com/u/antonio)\
**Post date:** [July 18, 2006, 6:49pm UTC](https://forum.servoy.com/t/timezone-not-sticking/6212/8 "2006-07-18T18:49:12Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![rgansevles](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rgansevles](https://forum.servoy.com/u/rgansevles)\
**Post date:** [November 28, 2006, 1:01pm UTC](https://forum.servoy.com/t/timezone-not-sticking/6212/9 "2006-11-28T13:01:20Z")

</div>

I am unable to reproduce this as well.

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

---

<div class="post-metadata">

**Author:** ![rgansevles](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rgansevles](https://forum.servoy.com/u/rgansevles)\
**Post date:** [November 28, 2006, 2:58pm UTC](https://forum.servoy.com/t/timezone-not-sticking/6212/10 "2006-11-28T14:58:31Z")

</div>

The problem seems to be caused by a bug introduced in java 1.5, see [http://bugs.sun.com/bugdatabase/view\_bu … id=6242673](http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6242673)

Upgrading 1.5.0\_07-b03 or later should fix this problem

---

<div class="post-metadata">

**Author:** ![antonio](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@antonio](https://forum.servoy.com/u/antonio)\
**Post date:** [November 28, 2006, 10:34pm UTC](https://forum.servoy.com/t/timezone-not-sticking/6212/11 "2006-11-28T22:34:51Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [November 29, 2006, 7:53am UTC](https://forum.servoy.com/t/timezone-not-sticking/6212/12 "2006-11-29T07:53:52Z")

</div>

Wow, that one came from far far away.

Chapeau for digging that up ![:)]( "Smile")
