Setting Client Date/Time with Web Client

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

Can’t you just add it to the column like a “regular” auto-enter?

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.

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)…

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.

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…