# Date Issue

**URL:** https://forum.servoy.com/t/date-issue/12172
**Category:** Classic Servoy
**Created:** [May 11, 2010, 12:32pm UTC](https://forum.servoy.com/t/date-issue/12172 "2010-05-11T12:32:53Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![robysimo09](https://avatars.discourse-cdn.com/v4/letter/r/898d66/32.png) [@robysimo09](https://forum.servoy.com/u/robysimo09)
#### Post date: [May 11, 2010, 12:32pm UTC](https://forum.servoy.com/t/date-issue/12172/1 "2010-05-11T12:32:53Z")

</div>

Hello

I have a server date issue.

I update my server to servoy 4.1.6 and after to 4.1.7.  
I use java 1.6 update 20 and 1.6.06 in another server.

When the server start, the server date format is CEST ( first page of servoy admin page )  
Below the server information:

Server Information  
Servoy version 4.1.6 -build 689  
Repository version 35 (f81064ba-81ed-4c8c-9d55-7f876b58f05f)  
Current time: Tue May 11 14:25:46 CEST 2010

From a pc, I clear the java cache and launch the client. When the client start to download the application the server change date format in UTC format  
Below the same Server information with UTC date:

Server Information  
Servoy version 4.1.6 -build 689  
Repository version 35 (f81064ba-81ed-4c8c-9d55-7f876b58f05f)  
Current time: Tue May 11 12:31:22 UTC 2010

What is the problem? Is a servoy issue or java issue.  
This happens after the upgrade to 4.1.6 or 4.1.7.

Thank you for help!  
Bye  
Roberto

---

<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: [May 12, 2010, 7:59am UTC](https://forum.servoy.com/t/date-issue/12172/2 "2010-05-12T07:59:06Z")

</div>

so you didnt restart or change anything on the server  
you only started a client and then the server changed its TimeZone?

---

<div class="post-metadata">

### Author: ![robysimo09](https://avatars.discourse-cdn.com/v4/letter/r/898d66/32.png) [@robysimo09](https://forum.servoy.com/u/robysimo09)
#### Post date: [May 12, 2010, 8:56am UTC](https://forum.servoy.com/t/date-issue/12172/3 "2010-05-12T08:56:29Z")

</div>

Yes

If I restart the server the TimeZone is CEST.  
But as soon as I start a client with cleared chache, the timezone change to UTC.

Roberto

---

<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: [May 12, 2010, 9:00am UTC](https://forum.servoy.com/t/date-issue/12172/4 "2010-05-12T09:00:41Z")

</div>

you do start a smart client and not a webclient? (or a batch client on that server)

---

<div class="post-metadata">

### Author: ![robysimo09](https://avatars.discourse-cdn.com/v4/letter/r/898d66/32.png) [@robysimo09](https://forum.servoy.com/u/robysimo09)
#### Post date: [May 12, 2010, 9:20am UTC](https://forum.servoy.com/t/date-issue/12172/5 "2010-05-12T09:20:36Z")

</div>

A smart client. Not with batch.  
I can’t try with web client.

Roberto

---

<div class="post-metadata">

### Author: ![robysimo09](https://avatars.discourse-cdn.com/v4/letter/r/898d66/32.png) [@robysimo09](https://forum.servoy.com/u/robysimo09)
#### Post date: [May 14, 2010, 2:57pm UTC](https://forum.servoy.com/t/date-issue/12172/6 "2010-05-14T14:57:32Z")

</div>

Hello

any news for the issue?

Thank you!  
Roberto

---

<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: [May 17, 2010, 8:12am UTC](https://forum.servoy.com/t/date-issue/12172/7 "2010-05-17T08:12:31Z")

</div>

because you only use smart clients and no web/headless or batch we cant see it right away  
please create a case for this.

---

<div class="post-metadata">

### Author: ![Foobrother](https://avatars.discourse-cdn.com/v4/letter/f/50afbb/32.png) [@Foobrother](https://forum.servoy.com/u/Foobrother)
#### Post date: [May 17, 2010, 8:19am UTC](https://forum.servoy.com/t/date-issue/12172/8 "2010-05-17T08:19:45Z")

</div>

Isn’t it because he’s got the setting “servoy.use.client.timezone” set to true with smart client timezone different than server? ![:roll:]( "Rolling Eyes")  
It shouldn’t change the server timezone, should it?

---

<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: [May 17, 2010, 8:35am UTC](https://forum.servoy.com/t/date-issue/12172/9 "2010-05-17T08:35:23Z")

</div>

no that cant be.  
It could be possible that something changes for web/batch or headless clients, thats also what we look into. But smart clients shouldnt set the default timezone or locale on the server.

---

<div class="post-metadata">

### Author: ![Foobrother](https://avatars.discourse-cdn.com/v4/letter/f/50afbb/32.png) [@Foobrother](https://forum.servoy.com/u/Foobrother)
#### Post date: [May 17, 2010, 9:09am UTC](https://forum.servoy.com/t/date-issue/12172/10 "2010-05-17T09:09:31Z")

</div>

By the way, with my Summer Hours change issue, I have a Batch User running on the server ![:idea:]( "Idea")

---

<div class="post-metadata">

### Author: ![robysimo09](https://avatars.discourse-cdn.com/v4/letter/r/898d66/32.png) [@robysimo09](https://forum.servoy.com/u/robysimo09)
#### Post date: [May 17, 2010, 10:47am UTC](https://forum.servoy.com/t/date-issue/12172/11 "2010-05-17T10:47:39Z")

</div>

At the client launch, the timezone change 3-4 times from CEST to UTC and viceversa and at the end the format remain UTC.  
Before the upgrade to servoy 4.1.6/7 this didn’t happen.

Roberto

---

<div class="post-metadata">

### Author: ![robysimo09](https://avatars.discourse-cdn.com/v4/letter/r/898d66/32.png) [@robysimo09](https://forum.servoy.com/u/robysimo09)
#### Post date: [May 18, 2010, 7:17am UTC](https://forum.servoy.com/t/date-issue/12172/12 "2010-05-18T07:17:04Z")

</div>

Opened Case 292685.

Roberto

---

<div class="post-metadata">

### Author: ![martinh](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@martinh](https://forum.servoy.com/u/martinh)
#### Post date: [May 19, 2010, 9:28am UTC](https://forum.servoy.com/t/date-issue/12172/13 "2010-05-19T09:28:50Z")

</div>

I noticed same kind of issue.  
Looks like since update to 4.1.6, because I didn’t notice it before.

Now it is 11:06 (Brussels), but Servoy Admin Page shows following:

**Server Information**  
**Servoy version 4.1.6 -build 689**  
**Repository version 35 (895d61ef-3255-446e-966d-f89399321361)**  
**Current time: Wed May 19 09:06:51 UTC 2010**  
**java.version=1.6.0\_17-b04**

The server has correct timezone and correct time. But all info in the (production) server (like client logged in) are shown 2 hours earlier now.  
But on another server (development server) running also 4.1.6 with java update 17, the time is shown correctly.

Strange is that the Server Log, shows the correct time.

[attachment=0]Capture.JPG[/attachment]

But Lock Info is showing wrong time:

**Release this lock 1.1; locked by x (Servoy Web Client) at Wed May 19 09:13:57 UTC 2010**

And for the Transaction Info the same.

So somehow there is a difference between the Lock Info time and the Log time … strange ![:?:]( "Question")

![Capture.JPG](https://canada1.discourse-cdn.com/flex010/uploads/servoy/optimized/2X/e/e75df733c0ca93ac0d304cf2fffb11c45ef08f1d_2_690x54.jpeg)

---

<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: [May 19, 2010, 9:42am UTC](https://forum.servoy.com/t/date-issue/12172/14 "2010-05-19T09:42:25Z")

</div>

its not 2 hours earlier, its exactly the same time but then in UTC and brussels is UTC+2 at the moment.

So it is not that your time is wrong, that one is correct, its that sometimes it formats the date string with a UTC timezone and other times with CEST time zone…

---

<div class="post-metadata">

### Author: ![martinh](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@martinh](https://forum.servoy.com/u/martinh)
#### Post date: [May 19, 2010, 9:46am UTC](https://forum.servoy.com/t/date-issue/12172/15 "2010-05-19T09:46:15Z")

</div>

> jcompagner:  
> its not 2 hours earlier, its exactly the same time but then in UTC and brussels is UTC+2 at the moment.
> 
> So it is not that your time is wrong, that one is correct, its that sometimes it formats the date string with a UTC timezone and other times with CEST time zone…

Technically it is not a wrong time, but for me from a visible perspective it shows wrong time.  
I’m not looking at timezones. It must always show the time in the timezone that I expect.

---

<div class="post-metadata">

### Author: ![robysimo09](https://avatars.discourse-cdn.com/v4/letter/r/898d66/32.png) [@robysimo09](https://forum.servoy.com/u/robysimo09)
#### Post date: [May 19, 2010, 12:06pm UTC](https://forum.servoy.com/t/date-issue/12172/16 "2010-05-19T12:06:01Z")

</div>

Each table of my solution have 2 fields that save the creation date and modification date with autoenter “creation server datetime” and “modification server datetime”. They are populated with the “wrong” time ( UTC )

Roberto

---

<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: [May 20, 2010, 1:49pm UTC](https://forum.servoy.com/t/date-issue/12172/17 "2010-05-20T13:49:27Z")

</div>

what is your property of servoy.use.client.timezone?

But you are correct the server time thats inserted in the db will always be 10:00 UTC (and then depending on the above property will be shown as 10:00 also in the client, if property is true, or 12:00 if property is false)

---

<div class="post-metadata">

### Author: ![robysimo09](https://avatars.discourse-cdn.com/v4/letter/r/898d66/32.png) [@robysimo09](https://forum.servoy.com/u/robysimo09)
#### Post date: [May 21, 2010, 7:20am UTC](https://forum.servoy.com/t/date-issue/12172/18 "2010-05-21T07:20:14Z")

</div>

The property of servoy.use.client.timezone is set to true.

I know that is correct the time inserted in db because it takes the time from server. The issue in fact is in the server time.

Roberto

---

<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: [May 27, 2010, 9:35am UTC](https://forum.servoy.com/t/date-issue/12172/19 "2010-05-27T09:35:09Z")

</div>

what 3th party plugins are you using that has this timezone problem on the server?

It could be that a plugin is doing that (server side plugin or a plugin that is used in the webclient/batch processor)

---

<div class="post-metadata">

### Author: ![robysimo09](https://avatars.discourse-cdn.com/v4/letter/r/898d66/32.png) [@robysimo09](https://forum.servoy.com/u/robysimo09)
#### Post date: [May 28, 2010, 10:42am UTC](https://forum.servoy.com/t/date-issue/12172/20 "2010-05-28T10:42:01Z")

</div>

The plugins installed are:  
It2Be:

- barcode
- calendar bean
- fax
- ftp
- tools

DrMaison

- TableBean
- MailProPlugin

Roberto

[Next page](https://forum.servoy.com/t/date-issue/12172.md?page=2)
