Is there any specific way of getting client’s date and time without using any Javascript at all,but only using a JSP, As I know there are ways to get clients IP using some of the methods below.
getRemoteAddr, getRemoteHost and getRemotePort
So I’m asking other way around,Is there any way please post it here.
Thanks.
Actually there seems to be no suitable header for that. Maybe some solution would be to use request.getLocale() method and then play with DateFormat object created using that locale?
It is certainly not very reliable since you are not obliged to use locale matching your actual time zone.