I'm trying to read a timestamp and reconstruct it in a different format as per my requirement, in Hive. But, I can't seem to get the month and date right. I suspect timestamp format to be incorrect but not sure where I'm going wrong.
Query
select from_unixtime(unix_timestamp("Sun Mar 28 19:51:10 GMT+05:30 2021", "EEE MMM dd HH:mm:ss z YYYY"), "HH:mm:ss dd-MM-YYYY-z")
Output
14:21:10 27-12-2021-UTC