Author Message
YasinUNAL
Joined: Nov 12, 2013
Messages: 36
Offline
Turkey will switch from EET/EEST (+02/+03) to permanent +03, on 10/30/2016 at 04:00 am.

We're using some date functions in our IVR applications such as shown below:

private static long parseDate(String text) {
try {
SimpleDateFormat dateFormat = new SimpleDateFormat("ddMMyyyy HHmmss");
return dateFormat.parse(text).getTime();
} catch (Exception e) {
return 0;
}
}





DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
Date d = new Date();
timestamp = dateFormat.format(d);

System.currentTimeMillis();


In this case, not to face with any issue, do we need to do an update on JVM / java patch on servers that host application servers?
or will it be enough to change the current time of those servers?

Thanks.
WilsonYu
Joined: Nov 6, 2013
Messages: 3950
Offline
This code is safe. You don't need to do anything.
Go to:   
Mobile view