Hi All,
new Date() returns a date one hour later than current time.
I'm running my solution in Developer, both client and server on one machine.
The server page shows correct time on the server.
What's wrong?
Cheers,
Maria
Andrei Costescu wrote:Are you running the solution in web client or smart client?
What is the value of "servoy.use.client.timezone" property in servoy.properties?
How did you see the date value created with new Date()? In a field, via application.output(...) or some other way?
What version of Servoy are you running?
var js = "var d = new Date();var offset = d.getTimezoneOffset();";
plugins.WebClientUtils.executeClientSideJS( js, globals.callbackOffset, ['offset'] );
date.setHours(date.getHours() - forms.frm_time_zone_sync_server_client.offset )
Users browsing this forum: No registered users and 12 guests