function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
irfan azizirfan aziz 

how to convert a UTC into local time zone??

I am using SOQL and trying to get the data into local time zone. I found one link which does not give a complete answer. The below give the date in local time zone but for time there is only hour_in_day() function. There is no mention of how to retrieve the minutes in local time. Since i am using the SOQL in a python script to extract data  from SF i dont see it feasible to declare some complex logic to do the timestamp converstion.
SELECT day_only(convertTimezone(CreatedDate))FROM Opportunity
GROUP BY DAY_only(convertTimezone(CreatedDate))