The best practice to work with “datetime” with UTC timezone?

What would be the the best practice to work with “datetime” with UTC timezone?
I am getting “datetime” from server with “yyyy-MM-ddTHH:mm:ss-0X:00” format and updating to another server on different timezone.
The sourceserver and easyMorph server and destination server are all in different time zone.

These two functions should help convert timestamps to/from UTC:

localtime()
utctime()