cancel
Showing results for 
Search instead for 
Did you mean: 

order should be placed based on the browser time not server time

Former Member
0 Kudos

Hello Experts,

My requirement is we have to place the order based on the user current time zone not server time zone,the server is located in Germany.How can we implement this. Please suggest me.

Thanks a lot.....

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Sindhu - the OOTB suggestions listed here will work very well but consider customers who place orders whilst not in their resident/delivery timezone, who may still want cut-off times to apply to their delivery location.

former_member387866
Active Contributor
0 Kudos

Hi Sindhu,

You can use userService.getCurrentUser().CURRENTTIME or JaloSession.getCurrentSession().getSessionContext().getTimeZone().

There's a bit more information in my answer on this other question: Show User's timezone instead of Server timezone.

Regards,
Luke

g_madhava1
Explorer
0 Kudos

Both of the approaches work. General recommendation is to go with userService.getCurrentUser().CURRENTTIME rather than JaloSession to incorporate SLD (service layer direct)

Former Member
0 Kudos

Thank you..Luke ,have you any idea in which file we have do these changes?its help full.

Former Member
0 Kudos

Hi Sindhu - you can make use of the Google Maps timezone api https://developers.google.com/maps/documentation/timezone/intro