How to convert local time string to UTC?
How do I convert a datetime string in local time to a string in UTC time?
How do I convert a datetime string in local time to a string in UTC time?
I’ve never had to convert time to and from UTC. Recently had a request to have my app be timezone aware, and I’ve been running myself in circles. Lots of information on converting local time to UTC, which I found fairly elementary (maybe I’m doing that wrong as well), but I can not find any information on easily converting the UTC time to the end-users timezone.