Date Issue

Questions and Answers on installation, deployment, management, locking, tranasactions of Servoy Application Server

Date Issue

Postby robysimo09 » Tue May 11, 2010 2:32 pm

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
robysimo09
 
Posts: 108
Joined: Fri Sep 04, 2009 9:06 am

Re: Date Issue

Postby jcompagner » Wed May 12, 2010 9:59 am

so you didnt restart or change anything on the server
you only started a client and then the server changed its TimeZone?
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Date Issue

Postby robysimo09 » Wed May 12, 2010 10:56 am

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
robysimo09
 
Posts: 108
Joined: Fri Sep 04, 2009 9:06 am

Re: Date Issue

Postby jcompagner » Wed May 12, 2010 11:00 am

you do start a smart client and not a webclient? (or a batch client on that server)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Date Issue

Postby robysimo09 » Wed May 12, 2010 11:20 am

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

Roberto
robysimo09
 
Posts: 108
Joined: Fri Sep 04, 2009 9:06 am

Re: Date Issue

Postby robysimo09 » Fri May 14, 2010 4:57 pm

Hello

any news for the issue?

Thank you!
Roberto
robysimo09
 
Posts: 108
Joined: Fri Sep 04, 2009 9:06 am

Re: Date Issue

Postby jcompagner » Mon May 17, 2010 10:12 am

because you only use smart clients and no web/headless or batch we cant see it right away
please create a case for this.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Date Issue

Postby Foobrother » Mon May 17, 2010 10:19 am

Isn't it because he's got the setting "servoy.use.client.timezone" set to true with smart client timezone different than server? :roll:
It shouldn't change the server timezone, should it?
Current configuration: Servoy 5.2.6 Build 1011, Java 6u24, PostgreSQL 8.3, Windows Server 2003

Servoy / Java Developer
http://www.assetguardian.com
User avatar
Foobrother
 
Posts: 530
Joined: Tue Jan 13, 2009 5:46 pm

Re: Date Issue

Postby jcompagner » Mon May 17, 2010 10:35 am

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.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Date Issue

Postby Foobrother » Mon May 17, 2010 11:09 am

By the way, with my Summer Hours change issue, I have a Batch User running on the server :idea:
Current configuration: Servoy 5.2.6 Build 1011, Java 6u24, PostgreSQL 8.3, Windows Server 2003

Servoy / Java Developer
http://www.assetguardian.com
User avatar
Foobrother
 
Posts: 530
Joined: Tue Jan 13, 2009 5:46 pm

Re: Date Issue

Postby robysimo09 » Mon May 17, 2010 12:47 pm

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
robysimo09
 
Posts: 108
Joined: Fri Sep 04, 2009 9:06 am

Re: Date Issue

Postby robysimo09 » Tue May 18, 2010 9:17 am

Opened Case 292685.

Roberto
robysimo09
 
Posts: 108
Joined: Fri Sep 04, 2009 9:06 am

Re: Date Issue

Postby martinh » Wed May 19, 2010 11:28 am

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.

Capture.JPG
Capture.JPG (24.25 KiB) Viewed 9083 times


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 :?:
Martin
------------------------------------------------
Servoy Developer
Version 5.2.10/5.2.13
Java version 1.6 update 31
Database SQL Server 2008 R2
martinh
 
Posts: 857
Joined: Wed May 09, 2007 5:34 pm
Location: Belgium

Re: Date Issue

Postby jcompagner » Wed May 19, 2010 11:42 am

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..
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Date Issue

Postby martinh » Wed May 19, 2010 11:46 am

jcompagner wrote: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.
Martin
------------------------------------------------
Servoy Developer
Version 5.2.10/5.2.13
Java version 1.6 update 31
Database SQL Server 2008 R2
martinh
 
Posts: 857
Joined: Wed May 09, 2007 5:34 pm
Location: Belgium

Next

Return to Servoy Server

Who is online

Users browsing this forum: No registered users and 12 guests