I have written a Java Program which takes the current IST timing and generates a report. This report should to be generated at 6pm IST, this check is done in the code itself after fetching IST timezone:
Date dateStr = Calendar.getInstance(TimeZone.getTimeZone("Asia/Kolkata")).getTime();
Problem Area: We are executing that java file in the server in PD timezone and the app is failing and no report is generated because dateStr value is being overwritten by the PD time zone.
Please help me with this as I am not clear like why PD time is shown when I am using IST time in date variable from the code.