I have created an application in Java Spring MVC, Hibernate and AngualarJS, In the application I am disabling certain date and time. The application is working fine for localhost. but when I hosted the application the date and time disabling seems wrong. My server is located in UK and when I tried to access from India its disabling wrong time and date. In my java code which resides in server I have used the following code for getting the current date time
DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
Date date = new Date();
System.out.println(dateFormat.format(date));
Can anyone please tell me some solution for this.
How can we get the client user date time zone in server side