I'm trying get current time and then, convert to UTC+1 time zone which is in yyyy-MM-dd HH:mm:ss format
I tried the following code. It didn't work. Can anyone help?
public static String getDateTime() {
    Date time = Calendar.getInstance().getTime();
    SimpleDateFormat outputFmt = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");        
    outputFmt.setTimeZone(TimeZone.getTimeZone("UTC+1"));
    return outputFmt.format(time);
}
 
    