I have written a method using JSF:
public static String getCurrentTime(Locale locale) {
Calendar cal=Calendar.getInstance(locale);
return new SimpleDateFormat("HHmmss").format(cal.getTime());
}
While testing my application in my local machine I am getting the time same as system time but when my friends are testing it time delay is of 4 minutes.
What may be the problem? else suggest a code to do the same