Time displayed with different values in web and smart client

Forum to discuss the Web client version of Servoy.

Time displayed with different values in web and smart client

Postby diana.bodnarescu » Fri Jun 26, 2009 3:30 pm

Hi,

I am encountering a weird issue within the application i am building in Servoy 3.5.7 for the web client. I display a DATETIME field from a record in a TEXT FIELD with format HH:mm. The problem is that on the web i see the time -1h. So if i set the time to 9:00 in the smart client, i see it 8:00 in the web client. On the server the timezone is GMT+2. My timezone is GMT+2. A person from a country with a timezone GMT+1 sees it 10:00, so +1h!
The property servoy.use.client.timezone is set to TRUE. This means we should all the the same time, correct?
I would deeply appreciate your help.

DB
Diana Bodnarescu
Stb Software Development
SAN Partner
User avatar
diana.bodnarescu
 
Posts: 137
Joined: Fri Sep 05, 2008 1:21 pm

Re: Time displayed with different values in web and smart client

Postby diana.bodnarescu » Wed Jul 01, 2009 9:03 am

We changed the server timezone to GMT+1 and now only the new inserts show 1h later on the web client. Could you please help me on this one?
Diana
Diana Bodnarescu
Stb Software Development
SAN Partner
User avatar
diana.bodnarescu
 
Posts: 137
Joined: Fri Sep 05, 2008 1:21 pm

Re: Time displayed with different values in web and smart client

Postby Harjo » Wed Jul 01, 2009 12:53 pm

Diana,

you have asked the same question here, not so long time ago, where it is answered by Johan:

viewtopic.php?f=34&t=12545&p=63612#p63600
Harjo Kompagnie
byKom B.V.
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Time displayed with different values in web and smart client

Postby diana.bodnarescu » Thu Jul 02, 2009 11:17 am

Yes, you are right, a time formatted field (HH:mm) is actually a datetime field, so it's the same issue..
It's just that I have the property servoy.use.client.timezone set to TRUE, and still when i create new records, the dates are different on the web from the smart client. I understood that they should be the same no matter the timezone we are looking from. Is this not correct?
Diana
Diana Bodnarescu
Stb Software Development
SAN Partner
User avatar
diana.bodnarescu
 
Posts: 137
Joined: Fri Sep 05, 2008 1:21 pm

Re: Time displayed with different values in web and smart client

Postby jcompagner » Mon Aug 03, 2009 10:47 am

if you have that property to true all the clients should see the exact same time as you entered

What version of servoy are you using?

for example if you put in "12:00" at some webclient then another webclient in another time zone doesnt show "12:00" ?
Or a smart client in the same time zone as the webclient that does the insert what does that see?
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8865
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 3 guests