My JVM is running in US/Pacific
Timezone but the client accesses the application from India;
for the first time Struts jQuery datepicker tag is loaded into browser with the default value of time as per JVM timezone.
I want it to be in clients timezone.
Can it be done in datepicker anyhow ?
<sj:datepicker theme="simple"
name="taskDate"
value="today"
timepicker="true"
timepickerFormat="hh:mm:ss"
buttonImageOnly="true"
style="width: 70px;"
label="Task Date"
key="taskDate"
displayFormat="ddMyy" />
I've tried using Joda Time, but seems its not compatible with value in datepicker, when I use it loads blank value.