Setting Client Date/Time with Web Client

Forum to discuss the Web client version of Servoy.

Setting Client Date/Time with Web Client

Postby Westy » Thu Apr 05, 2007 9:58 pm

When using Web Client how can the client's date/time be auto entered to a date column when a new record is created?

Dean
Westy
 
Posts: 852
Joined: Fri Feb 13, 2004 5:27 am
Location: Lynnfield, Massachusetts USA

Postby bcusick » Thu Apr 05, 2007 10:49 pm

Can't you just add it to the column like a "regular" auto-enter?
Bob Cusick
bcusick
 
Posts: 1255
Joined: Wed Apr 23, 2003 11:27 pm
Location: Thousand Oaks, CA USA

Postby Westy » Thu Apr 05, 2007 11:22 pm

Yes, that is what we have been doing but it enters the server time, not the client time. With the Web Client always running the client in memory on the server, I am not clear on whether it is possible to capture the actual "user's" time when a new record is created. We have users accessing our multi-tenant solution from several time zones.

On the other hand if we give the customers who ask for this what they want, then it might end up being confusing for our customers who are using the same solution who have employees in more than one time zone.
Westy
 
Posts: 852
Joined: Fri Feb 13, 2004 5:27 am
Location: Lynnfield, Massachusetts USA

Postby bcusick » Thu Apr 05, 2007 11:58 pm

AH! Crap, you're right. Sorry about that. Headless runs on the server - doesn't know about the client timezone stuff (I don't think)...
Bob Cusick
bcusick
 
Posts: 1255
Joined: Wed Apr 23, 2003 11:27 pm
Location: Thousand Oaks, CA USA

Postby ngervasi » Fri Apr 06, 2007 2:13 am

You can store server timestamps in the backend and show a calculated field to the client based on their timezone. Obviously you have to build a sort of preferences section in wich the client can specify his time zone so that it can be remembered in the following sessions. I think it's always smarter to use server timestamps and show them to the clients based on their time zone, this way you can compare your data easily.
Nicola Gervasi
sintpro.com
SAN Partner
ngervasi
 
Posts: 1485
Joined: Tue Dec 21, 2004 12:47 pm
Location: Arezzo, Italy

Postby Jan Blok » Fri Apr 06, 2007 10:27 am

Please file a issue in our support system at:
http://crm.servoy.com/servoy-webclient/ ... oy_support
We have to take the time from the browser...
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 19 guests

cron