Page 1 of 1

client date time

Posted: Thu Jan 28, 2016 1:03 pm
by heman1345

Does anyone know how to make all date and times pull from client not server I have a hosted server that is one hour away so all times are inaccurate.


Re: client date time

Posted: Fri Jan 29, 2016 10:41 am
by motfs

You need to write JavaScript code to get the date time. Google for sample code.

Or offset the time in the Row_Inserting/Row_Updating server event.


Re: client date time

Posted: Fri Jan 29, 2016 1:29 pm
by heman1345

How would I call the javascript on any date time field in my site


Re: client date time

Posted: Sat Jan 30, 2016 10:53 am
by motfs

You can add "on<xxx>='my_js_function();'" (in Edit Tag -> Custom Attributes) to call your JavaScript function by either onclick or onkeydown. See Field Setup -> Edit Tag -> Custom Attributes in the help file.