I am struggling with an issue to convert input time on salesforce UI (Assumed time in customer state) and on save of the record display this time into User's time zone. Eg. Agent with Sydney/Melbourne timezone input 12:00 PM time for customer in Perth and when this record is saved it should display 2:00 PM for the user in Sydney/Melbourne time zone.
I am able to achieve this, however it is done by adding difference of timezone for customer and User both.
I am looking for a way where i may not need to use this difference in offset and user time zone in calculation and can be achieved directly through methods provided by DateTime and TimeZone class in salesforce