parseDateInUTC and formatDateInUTC behave differently
parsedateInUTC and formatDateInUTC seem to behave differently.
First, I'm in the Pacific Time Zone. So 12 pm PST is 7 pm UTC.
If I do this: TalendDate.parseDateInUTC("yyyy-MM-dd HH:mm:ss","2020-09-23 12:00:00"), I get 23-09-2020 05:00:00, which is incorrect. It's 7 hours backwards instead of forwards.
But if I do this (at 12 pm today):
TalendDate.formatDateInUTC("yyyy-MM-dd HH:mm:ss", TalendDate.getCurrentDate() ), I get 2020-09-23 19:00:00, which is correct.
If I want a string date passed in converted to the correct UTC date, I have to do this: